All of lore.kernel.org
 help / color / mirror / Atom feed
* + kvm-fix-lockup-on-32-bit-intel-hosts-with-nx-disabled-in-the.patch added to -mm tree
@ 2007-01-31 18:43 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-01-31 18:43 UTC (permalink / raw)
  To: mm-commits; +Cc: avi


The patch titled
     KVM: fix lockup on 32-bit intel hosts with nx disabled in the bios
has been added to the -mm tree.  Its filename is
     kvm-fix-lockup-on-32-bit-intel-hosts-with-nx-disabled-in-the.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: KVM: fix lockup on 32-bit intel hosts with nx disabled in the bios
From: Avi Kivity <avi@qumranet.com>

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 <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 drivers/kvm/vmx.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN drivers/kvm/vmx.c~kvm-fix-lockup-on-32-bit-intel-hosts-with-nx-disabled-in-the drivers/kvm/vmx.c
--- a/drivers/kvm/vmx.c~kvm-fix-lockup-on-32-bit-intel-hosts-with-nx-disabled-in-the
+++ a/drivers/kvm/vmx.c
@@ -1116,6 +1116,8 @@ static int vmx_vcpu_setup(struct kvm_vcp
 
 		if (rdmsr_safe(index, &data_low, &data_high) < 0)
 			continue;
+		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;
_

Patches currently in -mm which might be from avi@qumranet.com are

origin.patch
kvm-fix-lockup-on-32-bit-intel-hosts-with-nx-disabled-in-the.patch
fix-x86_64-mm-convert-i386-pda-code-to-use-%fs.patch
kvm-optimize-inline-assembly.patch
kvm-fix-asm-constraint-for-lldt-instruction.patch
kvm-fix-gva_to_gpa.patch
kvm-vmx-handle-triple-faults-by-returning-exit_reason_shutdown-to-userspace.patch
kvm-fix-mmu-going-crazy-of-guest-sets-cr0wp-==-0.patch
kvm-svm-hack-initial-cpu-csbase-to-be-consistent-with-intel.patch
kvm-two-way-apic-tpr-synchronization.patch
kvm-vmx-reload-ds-and-es-even-in-64-bit-mode.patch
kvm-fix-mismatch-between-32-bit-and-64-bit-abi.patch
kvm-fix-vcpu-freeing-bug.patch
hotplug-allow-modules-to-use-the-cpu-hotplug-notifiers.patch
kvm-add-a-global-list-of-all-virtual-machines.patch
kvm-add-a-global-list-of-all-virtual-machines-tidy.patch
kvm-vmx-add-vcpu_clear.patch
kvm-cpu-hotplug-support.patch
kvm-host-suspend-resume-support.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-31 18:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 18:43 + kvm-fix-lockup-on-32-bit-intel-hosts-with-nx-disabled-in-the.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.