]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
make XEN_MAX_DOMAIN_MEMORY selectable
authorMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 15 Sep 2011 19:06:50 +0000 (12:06 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 15 Sep 2011 19:26:21 +0000 (12:26 -0700)
Fix arch/x86/xen/Kconfig XEN_MAX_DOMAIN_MEMORY selection option.
Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
arch/x86/xen/Kconfig

index 5cc821cb2e0968090501e8c6e5af36353d5e2f87..814ccb324fbdbe306ca24301f153e512ad25cd3c 100644 (file)
@@ -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