]> git.baikalelectronics.ru Git - kernel.git/commit
nVMX x86: check posted-interrupt descriptor addresss on vmentry of L2
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Fri, 24 Aug 2018 00:03:03 +0000 (20:03 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Sep 2018 22:51:44 +0000 (00:51 +0200)
commit9969469d957aca36c7b2283a82fa31d7f85201e3
treed361de7f3721697dab497a21e219ac830957f7a0
parent16b8d37b11d36b1ad1ecee647806e7538461ce03
nVMX x86: check posted-interrupt descriptor addresss on vmentry of L2

According to section "Checks on VMX Controls" in Intel SDM vol 3C,
the following check needs to be enforced on vmentry of L2 guests:

   - Bits 5:0 of the posted-interrupt descriptor address are all 0.
   - The posted-interrupt descriptor address does not set any bits
     beyond the processor's physical-address width.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Mark Kanda <mark.kanda@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c