aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/x86_64
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-01-23 14:04:34 +0100
committerJan Beulich <jbeulich@suse.com>2013-01-23 14:04:34 +0100
commita8d2b06db7826063df9d04be9d6f928bf2189bd0 (patch)
tree4c0e6f548c1d54775b69d60e6d9c5f0b550a505e /xen/arch/x86/x86_64
parenta2fd3bc4d44f1fca34fcfcff843b1eb940dc2c9a (diff)
downloadxen-a8d2b06db7826063df9d04be9d6f928bf2189bd0.tar.gz
xen-a8d2b06db7826063df9d04be9d6f928bf2189bd0.tar.bz2
xen-a8d2b06db7826063df9d04be9d6f928bf2189bd0.zip
x86: extend frame table virtual space
... to allow frames for up to 16Tb. At the same time, add the super page frame table coordinates to the comment describing the address space layout. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/x86_64')
-rw-r--r--xen/arch/x86/x86_64/mm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/x86_64/mm.c b/xen/arch/x86/x86_64/mm.c
index 333f57a556..c6e09a4041 100644
--- a/xen/arch/x86/x86_64/mm.c
+++ b/xen/arch/x86/x86_64/mm.c
@@ -958,7 +958,7 @@ static int extend_frame_table(struct mem_hotadd_info *info)
nidx = cidx = pfn_to_pdx(spfn)/PDX_GROUP_COUNT;
ASSERT( pfn_to_pdx(epfn) <= (DIRECTMAP_SIZE >> PAGE_SHIFT) &&
- (pfn_to_pdx(epfn) <= FRAMETABLE_SIZE / sizeof(struct page_info)) );
+ pfn_to_pdx(epfn) <= FRAMETABLE_NR );
if ( test_bit(cidx, pdx_group_valid) )
cidx = find_next_zero_bit(pdx_group_valid, eidx, cidx);
@@ -1406,7 +1406,7 @@ int mem_hotadd_check(unsigned long spfn, unsigned long epfn)
if ( (spfn >= epfn) )
return 0;
- if (pfn_to_pdx(epfn) > (FRAMETABLE_SIZE / sizeof(*frame_table)))
+ if (pfn_to_pdx(epfn) > FRAMETABLE_NR)
return 0;
if ( (spfn | epfn) & ((1UL << PAGETABLE_ORDER) - 1) )