[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/passthrough: don't leak guest IRQs
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1325492779 -3600 # Node ID 3a22ed3ec534799b3cab55b0dc0a7380e701ecbe # Parent a7b2610b8e5c9a15b1f5de9a3eabf7f19d0b4199 x86/passthrough: don't leak guest IRQs As unmap_domain_pirq_emuirq() fails on a never mapped pIRQ, it must not be called for the non-emu-IRQ case (to prevent the entire unmap operation failing). Based on a suggestion from Stefano. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Tested-by: Yongjie Ren <yongjie.ren@xxxxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> --- diff -r a7b2610b8e5c -r 3a22ed3ec534 xen/arch/x86/physdev.c --- a/xen/arch/x86/physdev.c Thu Dec 29 10:07:54 2011 +0000 +++ b/xen/arch/x86/physdev.c Mon Jan 02 09:26:19 2012 +0100 @@ -219,7 +219,8 @@ if ( is_hvm_domain(d) ) { spin_lock(&d->event_lock); - ret = unmap_domain_pirq_emuirq(d, pirq); + if ( domain_pirq_to_emuirq(d, pirq) != IRQ_UNBOUND ) + ret = unmap_domain_pirq_emuirq(d, pirq); spin_unlock(&d->event_lock); if ( domid == DOMID_SELF || ret ) goto free_domain; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |