aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
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.h
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.h')
-rw-r--r--drivers/kvm/kvm.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index a4331da816d0..7361c45d70c9 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -383,8 +383,6 @@ struct kvm_arch_ops {
383 void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l); 383 void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l);
384 void (*decache_cr0_cr4_guest_bits)(struct kvm_vcpu *vcpu); 384 void (*decache_cr0_cr4_guest_bits)(struct kvm_vcpu *vcpu);
385 void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0); 385 void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0);
386 void (*set_cr0_no_modeswitch)(struct kvm_vcpu *vcpu,
387 unsigned long cr0);
388 void (*set_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3); 386 void (*set_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3);
389 void (*set_cr4)(struct kvm_vcpu *vcpu, unsigned long cr4); 387 void (*set_cr4)(struct kvm_vcpu *vcpu, unsigned long cr4);
390 void (*set_efer)(struct kvm_vcpu *vcpu, u64 efer); 388 void (*set_efer)(struct kvm_vcpu *vcpu, u64 efer);