summaryrefslogtreecommitdiff
path: root/kvm_x86.c
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2011-08-06 18:52:54 -0700
committerBryan Cantrill <bryan@joyent.com>2011-08-06 18:52:54 -0700
commita72ed4a6406c2f906e2b2e50ce57c7e35858199c (patch)
treea4c557ff365790e8acdc7c2506f3b1f7fb6bf86e /kvm_x86.c
parent9e952eddf9817156c9eb424200bc47464ff2433a (diff)
downloadillumos-kvm-a72ed4a6406c2f906e2b2e50ce57c7e35858199c.tar.gz
HVM-566 KVM: Don't allow lmsw to clear cr0.pe
Diffstat (limited to 'kvm_x86.c')
-rw-r--r--kvm_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm_x86.c b/kvm_x86.c
index 21b3f6a..a0dbacb 100644
--- a/kvm_x86.c
+++ b/kvm_x86.c
@@ -440,7 +440,7 @@ kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
void
kvm_lmsw(struct kvm_vcpu *vcpu, unsigned long msw)
{
- kvm_set_cr0(vcpu, kvm_read_cr0_bits(vcpu, ~0x0ful) | (msw & 0x0f));
+ kvm_set_cr0(vcpu, kvm_read_cr0_bits(vcpu, ~0x0eul) | (msw & 0x0f));
}
void