xen: allow stubdom to call unmap_domain_pirq
PATCH 1/1 xen: allow stubdom to call unmap_domain_pirq
Hi all,
there is one missing IS_PRIV/IS_PRIV_FOR change in xen to make xc_physdev_unmap_pirq work with stubdoms.
Signed-off-by Stefano Stabellini <[email protected]>
---
xen/arch/x86/irq.c +1 -1
@@ -1484,7 +1484,7 @@if ( (pirq <0 ) || (pirq >= d->nr_pirqs) )return -EINVAL ; -if ( !IS_PRIV (current->domain) ) +if ( !IS_PRIV_FOR (current->domain, d) )return -EINVAL ;ASSERT (spin_is_locked (&pcidevs_lock));