diff options
-rw-r--r-- | arch/x86/xen/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 7a5d5666677f..70de4c8b8f27 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c @@ -531,7 +531,7 @@ static unsigned long __init xen_get_pages_limit(void) #ifdef CONFIG_X86_32 limit = GB(64) / PAGE_SIZE; #else - limit = ~0ul; + limit = MAXMEM / PAGE_SIZE; if (!xen_initial_domain() && xen_512gb_limit) limit = GB(512) / PAGE_SIZE; #endif |