diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 07:28:15 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 07:30:43 -0400 |
commit | 625422f60c55bbc368b8568ff925770b36bfc189 (patch) | |
tree | 6f7a6f37adc224aa5723a4b4afcd85ae2178af72 /arch | |
parent | 606decd67049217684e3cb5a54104d51ddd4ef35 (diff) |
Revert "KVM: SVM: Sync g_pat with guest-written PAT value"
This reverts commit e098223b789b4a618dacd79e5e0dad4a9d5018d1,
which has a dependency on other commits being reverted.
Cc: stable@vger.kernel.org # 4.2+
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/svm.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 9e88078f4146..22601206ffd7 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -3354,16 +3354,6 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) | |||
3354 | case MSR_VM_IGNNE: | 3354 | case MSR_VM_IGNNE: |
3355 | vcpu_unimpl(vcpu, "unimplemented wrmsr: 0x%x data 0x%llx\n", ecx, data); | 3355 | vcpu_unimpl(vcpu, "unimplemented wrmsr: 0x%x data 0x%llx\n", ecx, data); |
3356 | break; | 3356 | break; |
3357 | case MSR_IA32_CR_PAT: | ||
3358 | if (npt_enabled) { | ||
3359 | if (!kvm_mtrr_valid(vcpu, MSR_IA32_CR_PAT, data)) | ||
3360 | return 1; | ||
3361 | vcpu->arch.pat = data; | ||
3362 | svm_set_guest_pat(svm, &svm->vmcb->save.g_pat); | ||
3363 | mark_dirty(svm->vmcb, VMCB_NPT); | ||
3364 | break; | ||
3365 | } | ||
3366 | /* fall through */ | ||
3367 | default: | 3357 | default: |
3368 | return kvm_set_msr_common(vcpu, msr); | 3358 | return kvm_set_msr_common(vcpu, msr); |
3369 | } | 3359 | } |