x86/nvmx: only update SVI when using Ack on exit
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 26 Mar 2020 11:25:40 +0000 (12:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 26 Mar 2020 11:25:40 +0000 (12:25 +0100)
commit55d035f8e9e53903c72182059422377612b84169
tree096bc25007c9c65cb085d3c40371ff1865c36262
parent8b3721c542303d380bdab45c95508d9f9a77593c
x86/nvmx: only update SVI when using Ack on exit

Check whether there's a valid interrupt in VM_EXIT_INTR_INFO in order
to decide whether to update SVI in nvmx_update_apicv. If Ack on exit
is not being used VM_EXIT_INTR_INFO won't have a valid interrupt and
hence SVI shouldn't be updated to signal the interrupt is currently in
service because it won't be Acked.

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