diff options
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index ad273468c08a..d7439ceb2ac2 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -878,10 +878,10 @@ set: | |||
878 | 878 | ||
879 | static void svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) | 879 | static void svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) |
880 | { | 880 | { |
881 | vcpu->arch.cr4 = cr4; | 881 | vcpu->arch.cr4 = cr4; |
882 | if (!npt_enabled) | 882 | if (!npt_enabled) |
883 | cr4 |= X86_CR4_PAE; | 883 | cr4 |= X86_CR4_PAE; |
884 | to_svm(vcpu)->vmcb->save.cr4 = cr4; | 884 | to_svm(vcpu)->vmcb->save.cr4 = cr4; |
885 | } | 885 | } |
886 | 886 | ||
887 | static void svm_set_segment(struct kvm_vcpu *vcpu, | 887 | static void svm_set_segment(struct kvm_vcpu *vcpu, |