Initial KVM support.
Add some of the enhancements KVM has to their bochs bios tree. This
is only partial support for KVM - some features still do not work
correctly.
diff --git a/src/post.c b/src/post.c
index c7ddb24..0fd41f9 100644
--- a/src/post.c
+++ b/src/post.c
@@ -126,6 +126,11 @@
, E820_RESERVED);
add_e820(BUILD_BIOS_ADDR, BUILD_BIOS_SIZE, E820_RESERVED);
+ if (CONFIG_KVM)
+ // 4 pages before the bios, 3 pages for vmx tss pages, the
+ // other page for EPT real mode pagetable
+ add_e820(0xfffbc000, 4*4096, E820_RESERVED);
+
dprintf(1, "Ram Size=0x%08x\n", RamSize);
}
@@ -197,6 +202,7 @@
memmap_setup();
ram_probe();
+ mtrr_setup();
pnp_setup();
vga_setup();