Skip to content

Commit

Permalink
x86/nvmx: only update SVI when using Ack on exit
Browse files Browse the repository at this point in the history
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é <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
  • Loading branch information
royger authored and jbeulich committed Mar 26, 2020
1 parent 8b3721c commit 55d035f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xen/arch/x86/hvm/vmx/vvmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ static void nvmx_update_apicv(struct vcpu *v)
{
struct nestedvmx *nvmx = &vcpu_2_nvmx(v);
unsigned long reason = get_vvmcs(v, VM_EXIT_REASON);
uint32_t intr_info = nvmx->intr.intr_info;
unsigned long intr_info = get_vvmcs(v, VM_EXIT_INTR_INFO);

if ( reason == EXIT_REASON_EXTERNAL_INTERRUPT &&
nvmx->intr.source == hvm_intsrc_lapic &&
Expand Down

0 comments on commit 55d035f

Please sign in to comment.