diff options
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index d3cc1157d23b..191bc45b83e0 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -737,8 +737,10 @@ static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) | |||
737 | } | 737 | } |
738 | #endif | 738 | #endif |
739 | vcpu->svm->cr0 = cr0; | 739 | vcpu->svm->cr0 = cr0; |
740 | vcpu->svm->vmcb->save.cr0 = cr0 | CR0_PG_MASK | CR0_WP_MASK; | ||
741 | vcpu->cr0 = cr0; | 740 | vcpu->cr0 = cr0; |
741 | cr0 |= CR0_PG_MASK | CR0_WP_MASK; | ||
742 | cr0 &= ~(CR0_CD_MASK | CR0_NW_MASK); | ||
743 | vcpu->svm->vmcb->save.cr0 = cr0; | ||
742 | } | 744 | } |
743 | 745 | ||
744 | static void svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) | 746 | static void svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) |