diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-02-17 11:23:58 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-03 12:02:22 -0500 |
commit | 1aa0b51a033d4a1ec6d29d06487e053398afa21b (patch) | |
tree | 1a6002c4f2d703765371b3a091612c2e90b7fcca | |
parent | 676dc3cf5bc36a9e129a3ad8fe3bd7b2ebf20f5d (diff) |
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: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r-- | drivers/xen/events.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 975e90fa6d5a..89987a7bf26f 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -766,8 +766,9 @@ int xen_destroy_irq(int irq) | |||
766 | printk(KERN_WARNING "unmap irq failed %d\n", rc); | 766 | printk(KERN_WARNING "unmap irq failed %d\n", rc); |
767 | goto out; | 767 | goto out; |
768 | } | 768 | } |
769 | pirq_to_irq[info->u.pirq.pirq] = -1; | ||
770 | } | 769 | } |
770 | pirq_to_irq[info->u.pirq.pirq] = -1; | ||
771 | |||
771 | irq_info[irq] = mk_unbound_info(); | 772 | irq_info[irq] = mk_unbound_info(); |
772 | 773 | ||
773 | xen_free_irq(irq); | 774 | xen_free_irq(irq); |