debuggers.hg
changeset 22862:e7f44fb4ecc3
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>
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>
author | Wei Gang <gang.wei@intel.com> |
---|---|
date | Wed Jan 26 08:54:12 2011 +0000 (2011-01-26) |
parents | 4785c70c2b6d |
children | 16c863cb99f2 |
files | xen/arch/x86/irq.c |
line diff
1.1 --- a/xen/arch/x86/irq.c Wed Jan 26 08:45:40 2011 +0000 1.2 +++ b/xen/arch/x86/irq.c Wed Jan 26 08:54:12 2011 +0000 1.3 @@ -1567,9 +1567,6 @@ int unmap_domain_pirq(struct domain *d, 1.4 if ( (pirq < 0) || (pirq >= d->nr_pirqs) ) 1.5 return -EINVAL; 1.6 1.7 - if ( !IS_PRIV_FOR(current->domain, d) ) 1.8 - return -EINVAL; 1.9 - 1.10 ASSERT(spin_is_locked(&pcidevs_lock)); 1.11 ASSERT(spin_is_locked(&d->event_lock)); 1.12