aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 41dd0387cccb..496a54839968 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1583,7 +1583,7 @@ static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
1583 1583
1584static int svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) 1584static int svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4)
1585{ 1585{
1586 unsigned long host_cr4_mce = read_cr4() & X86_CR4_MCE; 1586 unsigned long host_cr4_mce = cr4_read_shadow() & X86_CR4_MCE;
1587 unsigned long old_cr4 = to_svm(vcpu)->vmcb->save.cr4; 1587 unsigned long old_cr4 = to_svm(vcpu)->vmcb->save.cr4;
1588 1588
1589 if (cr4 & X86_CR4_VMXE) 1589 if (cr4 & X86_CR4_VMXE)