Skip to contentSkip to conversation

xen: allow stubdom to call unmap_domain_pirq

PATCH New Stefano Stabellini 1 participant 1 message Nov 13, 2009

lore
Share & tools
lore
#0 lore raw

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.

---

xen/arch/x86/irq.c +1 -1
diff -r ac9d4ba48b83 xen/arch/x86/irq.c
@@ -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));