repository: /home/avi/kvm/linux-2.6
branch: master
commit 1805646bfeeea2365d49c46abcd61f2c0d21e677
Author: Avi Kivity <[EMAIL PROTECTED]>
Date:   Tue Nov 6 11:29:56 2007 +0200

    KVM: VMX: Avoid reloading host efer on cpus that don't have it
    
    Some VT-capable processors (like the T2600) don't have an efer, so don't try
    to reload it.
    
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index da3a339..6fc981d 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -370,6 +370,8 @@ static void load_transition_efer(struct vcpu_vmx *vmx)
        u64 guest_efer = vmx->guest_msrs[efer_offset].data;
        u64 ignore_bits;
 
+       if (efer_offset < 0)
+               return;
        /*
         * NX is emulated; LMA and LME handled by hardware; SCE meaninless
         * outside long mode

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