]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit6de84e581c083c4357b45c31b7ef71335725d850
treed361de7f3721697dab497a21e219ac830957f7a0
parente6c67d8cf1173b229f0c4343d1cc7925eca11c11
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