mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86/hvm: check return code of hvm_pi_update_irte when binding
Consume the return code from hvm_pi_update_irte(), and propagate the error back to the caller if hvm_pi_update_irte() fails. Fixes:35a1caf8b6('pass-through: update IRTE according to guest interrupt config changes') Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> master commit:cb587f620amaster date: 2025-03-12 13:32:31 +0100
This commit is contained in:
1 parent
74b40fe105
commit
94928e415f
1 file changed
+9
-1
@@ -381,7 +381,15 @@ int pt_irq_create_bind(
|
||||
|
||||
/* Use interrupt posting if it is supported. */
|
||||
if ( iommu_intpost )
|
||||
hvm_pi_update_irte(vcpu, info, pirq_dpci->gmsi.gvec);
|
||||
{
|
||||
rc = hvm_pi_update_irte(vcpu, info, pirq_dpci->gmsi.gvec);
|
||||
|
||||
if ( rc )
|
||||
{
|
||||
pt_irq_destroy_bind(d, pt_irq_bind);
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
if ( pt_irq_bind->u.msi.gflags & XEN_DOMCTL_VMSI_X86_UNMASKED )
|
||||
{
|
||||
|
||||