diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-12-02 13:47:08 -0800 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-12-02 13:47:08 -0800 |
commit | 3d7895b3bbe977e3abd2d4128e42c1daba5e3fa4 (patch) | |
tree | 3a17a23357b787f377dc3dc669824cc88e352306 /xen/common/rangeset.c | |
parent | 65d744c6d56f92401b9d279c9cf8fe618397be0e (diff) | |
download | xen-3d7895b3bbe977e3abd2d4128e42c1daba5e3fa4.tar.gz xen-3d7895b3bbe977e3abd2d4128e42c1daba5e3fa4.tar.bz2 xen-3d7895b3bbe977e3abd2d4128e42c1daba5e3fa4.zip |
xsm: Expand I/O resource hooks
The XSM hooks inside rangeset are not useful in capturing the PIRQ
mappings in HVM domains. They can also be called from softirq context
where current->domain is invalid, causing spurious AVC denials from
unrelated domains on such calls.
Within FLASK code, the rangeset hooks were already divided between
IRQs, I/O memory, and x86 IO ports; propagate this division back
through the XSM hooks and call the XSM functions directly when needed.
This removes XSM checks for the initial rangeset population for dom0
and the removal checks on domain destruction; denying either of these
actions does not make sense.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/rangeset.c')
-rw-r--r-- | xen/common/rangeset.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/xen/common/rangeset.c b/xen/common/rangeset.c index bb9523fda6..f09c0c4453 100644 --- a/xen/common/rangeset.c +++ b/xen/common/rangeset.c @@ -97,10 +97,6 @@ int rangeset_add_range( struct range *x, *y; int rc = 0; - rc = xsm_add_range(r->domain, r->name, s, e); - if ( rc ) - return rc; - ASSERT(s <= e); spin_lock(&r->lock); @@ -169,10 +165,6 @@ int rangeset_remove_range( struct range *x, *y, *t; int rc = 0; - rc = xsm_remove_range(r->domain, r->name, s, e); - if ( rc ) - return rc; - ASSERT(s <= e); spin_lock(&r->lock); |