Skip to content

Commit

Permalink
xen/irq: Cleanup up the pirq_to_irq for DomU PV PCI passthrough guest…
Browse files Browse the repository at this point in the history
…s 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>
  • Loading branch information
Konrad Rzeszutek Wilk committed Mar 3, 2011
1 parent 676dc3c commit 1aa0b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1aa0b51

Please sign in to comment.