aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
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/svm.c
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/svm.c')
-rw-r--r--drivers/kvm/svm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 2a7a0390bfb1..bddd0238869d 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -738,7 +738,7 @@ static void svm_set_gdt(struct kvm_vcpu *vcpu, struct descriptor_table *dt)
738 vcpu->svm->vmcb->save.gdtr.base = dt->base ; 738 vcpu->svm->vmcb->save.gdtr.base = dt->base ;
739} 739}
740 740
741static void svm_decache_cr0_cr4_guest_bits(struct kvm_vcpu *vcpu) 741static void svm_decache_cr4_guest_bits(struct kvm_vcpu *vcpu)
742{ 742{
743} 743}
744 744
@@ -1759,7 +1759,7 @@ static struct kvm_arch_ops svm_arch_ops = {
1759 .get_segment = svm_get_segment, 1759 .get_segment = svm_get_segment,
1760 .set_segment = svm_set_segment, 1760 .set_segment = svm_set_segment,
1761 .get_cs_db_l_bits = svm_get_cs_db_l_bits, 1761 .get_cs_db_l_bits = svm_get_cs_db_l_bits,
1762 .decache_cr0_cr4_guest_bits = svm_decache_cr0_cr4_guest_bits, 1762 .decache_cr4_guest_bits = svm_decache_cr4_guest_bits,
1763 .set_cr0 = svm_set_cr0, 1763 .set_cr0 = svm_set_cr0,
1764 .set_cr3 = svm_set_cr3, 1764 .set_cr3 = svm_set_cr3,
1765 .set_cr4 = svm_set_cr4, 1765 .set_cr4 = svm_set_cr4,