aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2007-04-27 02:29:21 -0400
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:31 -0400
commit25c4c2762e31a75403eca0dd59f2cab85e3a2532 (patch)
tree151c4a309da81608bdf729d701dcbfc3d4e1e9d7 /drivers/kvm/kvm.h
parente0e5127d06957e76da3906b7a58d5d2665e81f59 (diff)
KVM: VMX: Properly shadow the CR0 register in the vcpu struct
Set all of the host mask bits for CR0 so that we can maintain a proper shadow of CR0. This exposes CR0.TS, paving the way for lazy fpu handling. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> 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, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 61ff085df7e6..f99e89e185b2 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -397,7 +397,7 @@ struct kvm_arch_ops {
397 void (*set_segment)(struct kvm_vcpu *vcpu, 397 void (*set_segment)(struct kvm_vcpu *vcpu,
398 struct kvm_segment *var, int seg); 398 struct kvm_segment *var, int seg);
399 void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l); 399 void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l);
400 void (*decache_cr0_cr4_guest_bits)(struct kvm_vcpu *vcpu); 400 void (*decache_cr4_guest_bits)(struct kvm_vcpu *vcpu);
401 void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0); 401 void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0);
402 void (*set_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3); 402 void (*set_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3);
403 void (*set_cr4)(struct kvm_vcpu *vcpu, unsigned long cr4); 403 void (*set_cr4)(struct kvm_vcpu *vcpu, unsigned long cr4);