]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: #GP when attempts to write reserved bits of Variable Range MTRRs
authorWanpeng Li <wanpeng.li@linux.intel.com>
Tue, 19 Aug 2014 09:04:40 +0000 (17:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Aug 2014 13:12:29 +0000 (15:12 +0200)
commit079343466ea0910d6f25519ef1e3b27134ae710a
tree6702c15304c2ff216987c809dd787800ca13d22c
parent8948fe4f944074d802181ccd590b85df331c8c53
KVM: x86: #GP when attempts to write reserved bits of Variable Range MTRRs

Section 11.11.2.3 of the SDM mentions "All other bits in the IA32_MTRR_PHYSBASEn
and IA32_MTRR_PHYSMASKn registers are reserved; the processor generates a
general-protection exception(#GP) if software attempts to write to them". This
patch do it in kvm.

Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c