aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-03-20 12:44:51 -0400
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:25 -0400
commitf6528b03f167785301908bf124db7be591e983ca (patch)
treeca52c2a5553d8f0c4bcd7b3a9587fcf00e374731 /drivers/kvm/kvm_main.c
parent8cb5b0333250beb382624f626851a31f601b4830 (diff)
KVM: Remove set_cr0_no_modeswitch() arch op
set_cr0_no_modeswitch() was a hack to avoid corrupting segment registers. As we now cache the protected mode values on entry to real mode, this isn't an issue anymore, and it interferes with reboot (which usually _is_ a modeswitch). Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r--drivers/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 205998c141fb..b998bc68e9f2 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1936,7 +1936,7 @@ static int kvm_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu,
1936 kvm_arch_ops->decache_cr0_cr4_guest_bits(vcpu); 1936 kvm_arch_ops->decache_cr0_cr4_guest_bits(vcpu);
1937 1937
1938 mmu_reset_needed |= vcpu->cr0 != sregs->cr0; 1938 mmu_reset_needed |= vcpu->cr0 != sregs->cr0;
1939 kvm_arch_ops->set_cr0_no_modeswitch(vcpu, sregs->cr0); 1939 kvm_arch_ops->set_cr0(vcpu, sregs->cr0);
1940 1940
1941 mmu_reset_needed |= vcpu->cr4 != sregs->cr4; 1941 mmu_reset_needed |= vcpu->cr4 != sregs->cr4;
1942 kvm_arch_ops->set_cr4(vcpu, sregs->cr4); 1942 kvm_arch_ops->set_cr4(vcpu, sregs->cr4);