repository: /home/avi/kvm
branch: master
commit b0e5e88d4d25e63ae33396fa990f2ca2b539e5a6
Author: Avi Kivity <[EMAIL PROTECTED]>
Date:   Tue Nov 6 16:45:13 2007 +0200

    kvm: qemu: disable svm support on the guest
    
    we don't to nested virtualization yet.
    
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index 4c42768..38ba5c3 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -1105,6 +1105,9 @@ static void do_cpuid_ent(struct kvm_cpuid_entry *e, 
uint32_t function,
        // nx
        if ((h_edx & 0x00100000) == 0)
            e->edx &= ~0x00100000u;
+       // svm
+       if (e->ecx & 4)
+           e->ecx &= ~4u;
     }
     // sysenter isn't supported on compatibility mode on AMD.  and syscall
     // isn't supported in compatibility mode on Intel.  so advertise the

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to