mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/vvmx: don't enable interrupt window when using virt intr delivery
If virtual interrupt delivery is used to inject the interrupt to the guest the interrupt window shouldn't be enabled, as the interrupt is already injected using the GUEST_INTR_STATUS vmcs field. Reported-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
1 parent
a8effbffe5
commit
67f9d0b95a
1 file changed
+1
-1
@@ -209,7 +209,7 @@ static int nvmx_intr_intercept(struct vcpu *v, struct hvm_intack intack)
|
||||
if ( unlikely(intack.source != hvm_intsrc_none) )
|
||||
vmx_enable_intr_window(v, intack);
|
||||
}
|
||||
else
|
||||
else if ( !cpu_has_vmx_virtual_intr_delivery )
|
||||
vmx_enable_intr_window(v, intack);
|
||||
|
||||
return 1;
|
||||
|
||||