diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-01-23 14:04:34 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-01-23 14:04:34 +0100 |
commit | a8d2b06db7826063df9d04be9d6f928bf2189bd0 (patch) | |
tree | 4c0e6f548c1d54775b69d60e6d9c5f0b550a505e /xen/arch/x86/setup.c | |
parent | a2fd3bc4d44f1fca34fcfcff843b1eb940dc2c9a (diff) | |
download | xen-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/setup.c')
-rw-r--r-- | xen/arch/x86/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index f4d3788e06..f9ed5804b2 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -378,8 +378,8 @@ static void __init setup_max_pdx(void) if ( max_pdx > (DIRECTMAP_SIZE >> PAGE_SHIFT) ) max_pdx = DIRECTMAP_SIZE >> PAGE_SHIFT; - if ( max_pdx > FRAMETABLE_SIZE / sizeof(*frame_table) ) - max_pdx = FRAMETABLE_SIZE / sizeof(*frame_table); + if ( max_pdx > FRAMETABLE_NR ) + max_pdx = FRAMETABLE_NR; max_page = pdx_to_pfn(max_pdx - 1) + 1; } |