From: Kevin O'Connor Date: Fri, 9 Oct 2009 01:50:31 +0000 (-0400) Subject: Check at runtime if VM is KVM. X-Git-Tag: rel-0.5.0~83 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b8bf14aee5ed8186d3013ae3fc8175ba0de24d9d;p=seabios.git Check at runtime if VM is KVM. Signed-off-by: Gleb Natapov --- diff --git a/src/post.c b/src/post.c index e5764c7..e6f9c39 100644 --- a/src/post.c +++ b/src/post.c @@ -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);