]> 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)
commit30dae5de3f2b879b779737fe3abdd868bb6651eb
tree6702c15304c2ff216987c809dd787800ca13d22c
parentc20ddee100a29acbeabf89e653ea8c2e7e7fb875
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