mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86: Fix pirq teardown on domain destruction.
The privilege check in unmap_domain_pirq() fails since the teardown completes in RCU (idle domain) context. We can remove the check since it is covered in physdev_op() already, which is the only potentially unprivileged caller. Signed-off-by: Wei Gang <gang.wei@intel.com>
This commit is contained in:
1 parent
16b2a6cf7f
commit
56bcfc196f
1 file changed
-3
@@ -1567,9 +1567,6 @@ int unmap_domain_pirq(struct domain *d, int pirq)
|
||||
if ( (pirq < 0) || (pirq >= d->nr_pirqs) )
|
||||
return -EINVAL;
|
||||
|
||||
if ( !IS_PRIV_FOR(current->domain, d) )
|
||||
return -EINVAL;
|
||||
|
||||
ASSERT(spin_is_locked(&pcidevs_lock));
|
||||
ASSERT(spin_is_locked(&d->event_lock));
|
||||
|
||||
|
||||