aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-02-17 11:23:58 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-03 12:02:22 -0500
commit1aa0b51a033d4a1ec6d29d06487e053398afa21b (patch)
tree1a6002c4f2d703765371b3a091612c2e90b7fcca /drivers/xen
parentxen: Use IRQF_FORCE_RESUME (diff)
downloadlinux-dev-1aa0b51a033d4a1ec6d29d06487e053398afa21b.tar.xz
linux-dev-1aa0b51a033d4a1ec6d29d06487e053398afa21b.zip
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>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/events.c3
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)
printk(KERN_WARNING "unmap irq failed %d\n", rc);
goto out;
}
- pirq_to_irq[info->u.pirq.pirq] = -1;
}
+ pirq_to_irq[info->u.pirq.pirq] = -1;
+
irq_info[irq] = mk_unbound_info();
xen_free_irq(irq);