Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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 <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Avi Kivity and committed by
Linus Torvalds
432bd6cb 6a4c24ec

+2
+2
drivers/kvm/vmx.c
··· 1116 1116 1117 1117 if (rdmsr_safe(index, &data_low, &data_high) < 0) 1118 1118 continue; 1119 + if (wrmsr_safe(index, data_low, data_high) < 0) 1120 + continue; 1119 1121 data = data_low | ((u64)data_high << 32); 1120 1122 vcpu->host_msrs[j].index = index; 1121 1123 vcpu->host_msrs[j].reserved = 0;