Revert "KVM: x86: apply guest MTRR virtualization on host reserved pages"

This reverts commit fd717f1101.
It was reported to cause Machine Check Exceptions (bug 104091).

Reported-by: harn-solo@gmx.de
Cc: stable@vger.kernel.org # 4.2+
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
此提交包含在:
Paolo Bonzini
2015-10-01 13:12:47 +02:00
父節點 9bac175d8e
當前提交 606decd670
共有 2 個檔案被更改,包括 13 行新增5 行删除

查看文件

@@ -1167,11 +1167,14 @@ static u64 svm_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio)
u8 mtrr;
/*
* 1. MMIO: trust guest MTRR, so same as item 3.
* 1. MMIO: always map as UC
* 2. No passthrough: always map as WB, and force guest PAT to WB as well
* 3. Passthrough: can't guarantee the result, try to trust guest.
*/
if (!is_mmio && !kvm_arch_has_assigned_device(vcpu->kvm))
if (is_mmio)
return _PAGE_NOCACHE;
if (!kvm_arch_has_assigned_device(vcpu->kvm))
return 0;
if (!kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_CD_NW_CLEARED) &&