Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1aa0b51a authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk
Browse files

xen/irq: Cleanup up the pirq_to_irq for DomU PV PCI passthrough guests as well.



We only did this for PV guests that are xen_initial_domain() but
there is not reason not to do this for other cases. The other
case is only exercised when you pass in a PCI device to a PV guest
_and_ the device in question.

Reviewed-by: default avatarIan Campbell <ian.campbell@citrix.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 676dc3cf
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -766,8 +766,9 @@ int xen_destroy_irq(int irq)
			printk(KERN_WARNING "unmap irq failed %d\n", rc);
			printk(KERN_WARNING "unmap irq failed %d\n", rc);
			goto out;
			goto out;
		}
		}
		pirq_to_irq[info->u.pirq.pirq] = -1;
	}
	}
	pirq_to_irq[info->u.pirq.pirq] = -1;

	irq_info[irq] = mk_unbound_info();
	irq_info[irq] = mk_unbound_info();


	xen_free_irq(irq);
	xen_free_irq(irq);