x86/nvmx: update exit bitmap when using virtual interrupt delivery
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 27 Mar 2020 12:45:59 +0000 (13:45 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 27 Mar 2020 13:14:54 +0000 (13:14 +0000)
commit6a761c6fcd2a0d4412aeb3bc2bff68c6f89c0047
treea2b0f7ca5dd93f3ca169909c9f5add127c07f0ed
parent25df013e7ab27c95044655fbc188ea9810e471be
x86/nvmx: update exit bitmap when using virtual interrupt delivery

Force an update of the EOI exit bitmap in nvmx_update_apicv, because
the one performed in vmx_intr_assist might not be reached if the
interrupt is intercepted by nvmx_intr_intercept returning true.

Extract the code to update the exit bitmap from vmx_intr_assist into a
helper and use it in nvmx_update_apicv.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/intr.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vmx.h