diff mbox

[06/21] Check at runtime if VM is KVM.

Message ID 1255017566-26220-7-git-send-email-gleb@redhat.com
State Not Applicable
Headers show

Commit Message

Gleb Natapov Oct. 8, 2009, 3:59 p.m. UTC
Signed-off-by: Gleb Natapov <gleb@redhat.com>
---
 src/post.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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);