aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/mm.c
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2013-04-23 11:56:05 +0200
committerJan Beulich <jbeulich@suse.com>2013-04-23 11:56:05 +0200
commit3f28d0077788e7f8cd3ee25b023a4225d7e26e87 (patch)
tree56758394d52f0aed5f71ad2763a54d76c07d8810 /xen/arch/x86/mm.c
parent4bc22a50ebc1fb1695d59f69105797e208021edb (diff)
downloadxen-3f28d0077788e7f8cd3ee25b023a4225d7e26e87.tar.gz
xen-3f28d0077788e7f8cd3ee25b023a4225d7e26e87.tar.bz2
xen-3f28d0077788e7f8cd3ee25b023a4225d7e26e87.zip
x86: remove IS_PRIV_FOR references
The check in guest_physmap_mark_populate_on_demand is redundant, since its only caller is populate_physmap whose only caller checks the xsm_memory_adjust_reservation hook prior to calling. Add a new XSM hook for the other two checks since they allow privileged domains to arbitrarily map a guest's memory. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Acked-by: George Dunlap <george.dunlap@eu.citrix.com> (release perspective)
Diffstat (limited to 'xen/arch/x86/mm.c')
-rw-r--r--xen/arch/x86/mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c
index 58e140203d..0cd4203b62 100644
--- a/xen/arch/x86/mm.c
+++ b/xen/arch/x86/mm.c
@@ -815,7 +815,7 @@ get_page_from_l1e(
* minor hack can go away.
*/
if ( (real_pg_owner == NULL) || (pg_owner == l1e_owner) ||
- !IS_PRIV_FOR(pg_owner, real_pg_owner) )
+ xsm_priv_mapping(XSM_TARGET, pg_owner, real_pg_owner) )
{
MEM_LOG("pg_owner %d l1e_owner %d, but real_pg_owner %d",
pg_owner->domain_id, l1e_owner->domain_id,