]> xenbits.xensource.com Git - seabios.git/commitdiff
Check at runtime if VM is KVM.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 9 Oct 2009 01:50:31 +0000 (21:50 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 9 Oct 2009 01:50:31 +0000 (21:50 -0400)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
src/post.c

index e5764c7d8472cf942109695d10e6522870d575f7..e6f9c39da5d516ae04573069533608cbae7b4321 100644 (file)
@@ -129,7 +129,7 @@ ram_probe(void)
              , E820_RESERVED);
     add_e820(BUILD_BIOS_ADDR, BUILD_BIOS_SIZE, E820_RESERVED);
 
-    if (CONFIG_KVM)
+    if (kvm_para_available())
         // 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);