From: Maxim Uvarov Date: Thu, 15 Sep 2011 19:06:50 +0000 (-0700) Subject: make XEN_MAX_DOMAIN_MEMORY selectable X-Git-Tag: v2.6.39-400.9.0~905 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f9453995f3d39277ff986d08762548e3e2729ea6;p=users%2Fjedix%2Flinux-maple.git make XEN_MAX_DOMAIN_MEMORY selectable Fix arch/x86/xen/Kconfig XEN_MAX_DOMAIN_MEMORY selection option. Signed-off-by: Maxim Uvarov --- diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig index 5cc821cb2e09..814ccb324fbd 100644 --- a/arch/x86/xen/Kconfig +++ b/arch/x86/xen/Kconfig @@ -29,12 +29,15 @@ config XEN_PVHVM depends on X86_LOCAL_APIC config XEN_MAX_DOMAIN_MEMORY - int - default 128 + int "Maximum allowed size of a domain in gigabytes" + default 8 if X86_32 + default 32 if X86_64 depends on XEN help - This only affects the sizing of some bss arrays, the unused - portions of which are freed. + The pseudo-physical to machine address array is sized + according to the maximum possible memory size of a Xen + domain. This array uses 1 page per gigabyte, so there's no + need to be too stingy here. config XEN_SAVE_RESTORE bool