diff options
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 85f61dd1e936..6b4de4f6c08d 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -723,7 +723,7 @@ static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) | |||
723 | } | 723 | } |
724 | #endif | 724 | #endif |
725 | vcpu->svm->cr0 = cr0; | 725 | vcpu->svm->cr0 = cr0; |
726 | vcpu->svm->vmcb->save.cr0 = cr0 | CR0_PG_MASK; | 726 | vcpu->svm->vmcb->save.cr0 = cr0 | CR0_PG_MASK | CR0_WP_MASK; |
727 | vcpu->cr0 = cr0; | 727 | vcpu->cr0 = cr0; |
728 | } | 728 | } |
729 | 729 | ||