aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/tboot.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/arch/x86/tboot.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/arch/x86/tboot.c')
-rw-r--r--xen/arch/x86/tboot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c
index 49254273ec..e40605d118 100644
--- a/xen/arch/x86/tboot.c
+++ b/xen/arch/x86/tboot.c
@@ -205,8 +205,7 @@ static void tboot_gen_domain_integrity(const uint8_t key[TB_KEY_SIZE],
page_list_for_each(page, &d->page_list)
{
- void *pg;
- pg = map_domain_page(page_to_mfn(page));
+ void *pg = __map_domain_page(page);
vmac_update(pg, PAGE_SIZE, &ctx);
unmap_domain_page(pg);
}