KVM: VMX: Properly shadow the CR0 register in the vcpu struct
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 27 Apr 2007 06:29:21 +0000 (09:29 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:31 +0000 (10:52 +0300)
commit25c4c2762e31a75403eca0dd59f2cab85e3a2532
tree151c4a309da81608bdf729d701dcbfc3d4e1e9d7
parente0e5127d06957e76da3906b7a58d5d2665e81f59
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>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/svm.c
drivers/kvm/vmx.c