Commit:     432bd6cbf9f016f5480153b1cdfbd046f8d4fb1e
Parent:     6a4c24ec52128c1f57b7d2d24cf4dd13fc23f474
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 31 23:48:13 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Feb 1 16:22:41 2007 -0800

    [PATCH] KVM: fix lockup on 32-bit intel hosts with nx disabled in the bios
    Intel hosts, without long mode, and with nx support disabled in the bios
    have an efer that is readable but not writable.  This causes a lockup on
    switch to guest mode (even though it should exit with reason 34 according
    to the documentation).
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/kvm/vmx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 27f2751..54c35c0 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1116,6 +1116,8 @@ static int vmx_vcpu_setup(struct kvm_vcpu *vcpu)
                if (rdmsr_safe(index, &data_low, &data_high) < 0)
+               if (wrmsr_safe(index, data_low, data_high) < 0)
+                       continue;
                data = data_low | ((u64)data_high << 32);
                vcpu->host_msrs[j].index = index;
                vcpu->host_msrs[j].reserved = 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to