aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/tmem_xen.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-09-22 08:26:16 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-09-22 08:26:16 +0100
commit84d568f5c9ceb342be7c883074ac8c5423ab1492 (patch)
tree115cf3d4c07b9639192c005e5ef7e129f47c1e4b /xen/common/tmem_xen.c
parent78e09264ad9836fa47610399e4a5b4d3cd62caf5 (diff)
downloadxen-84d568f5c9ceb342be7c883074ac8c5423ab1492.tar.gz
xen-84d568f5c9ceb342be7c883074ac8c5423ab1492.tar.bz2
xen-84d568f5c9ceb342be7c883074ac8c5423ab1492.zip
Introduce new flavour of map_domain_page()
Introduce a variant of map_domain_page() directly getting passed a struct page_info * argument, based on the observation that in many places the argument to this function so far simply was the result of page_to_mfn(). This is meaningful for the x86-64 case where map_domain_page() really just is an invocation of mfn_to_virt(), and hence the combined mfn_to_virt(page_to_mfn()) now represents a needless round trip conversion compressed -> uncompressed -> compressed of the MFN representation. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/tmem_xen.c')
-rw-r--r--xen/common/tmem_xen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c
index c11aa60d6e..b7a308b019 100644
--- a/xen/common/tmem_xen.c
+++ b/xen/common/tmem_xen.c
@@ -268,7 +268,7 @@ static void *tmh_persistent_pool_page_get(unsigned long size)
if ( (pi = _tmh_alloc_page_thispool(d)) == NULL )
return NULL;
ASSERT(IS_VALID_PAGE(pi));
- return map_domain_page(page_to_mfn(pi));
+ return __map_domain_page(pi);
}
static void tmh_persistent_pool_page_put(void *page_va)