diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-01-30 11:03:28 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-01-30 11:03:28 +0000 |
commit | e44c9316ba3cd352f46dcd391778e01b2742ae75 (patch) | |
tree | 518b93a6e4a2fcec1ac9d23004affc7d84c8f7e8 /xen/arch/x86/domain_build.c | |
parent | bb978e7d199327cc9f98bf546295f59a1587a602 (diff) | |
download | xen-e44c9316ba3cd352f46dcd391778e01b2742ae75.tar.gz xen-e44c9316ba3cd352f46dcd391778e01b2742ae75.tar.bz2 xen-e44c9316ba3cd352f46dcd391778e01b2742ae75.zip |
x86-64: use MFNs for linking together pages on lists
Unless more than 16Tb are going to ever be supported in Xen, this will
allow reducing the linked list entries in struct page_info from 16 to
8 bytes.
This doesn't modify struct shadow_page_info, yet, so in order to meet
the constraints of that 'mirror' structure the list entry gets
artificially forced to be 16 bytes in size. That workaround will be
removed in a subsequent patch.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/domain_build.c')
-rw-r--r-- | xen/arch/x86/domain_build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c index 08472a9b9b..6cd4f04287 100644 --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -880,7 +880,7 @@ int __init construct_dom0( } si->first_p2m_pfn = pfn; si->nr_p2m_frames = d->tot_pages - count; - list_for_each_entry ( page, &d->page_list, list ) + page_list_for_each ( page, &d->page_list ) { mfn = page_to_mfn(page); if ( get_gpfn_from_mfn(mfn) >= count ) |