]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86: Make E820_X_MAX unconditionally larger than E820MAX
authorAlex Thorlton <athorlton@sgi.com>
Mon, 5 Dec 2016 17:49:13 +0000 (11:49 -0600)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:31 +0000 (15:55 -0500)
commit90cffc03965e43845565abaf30eb324e04274a07
tree1f5252f03a4aad3ce1d37c843d6f6bfb7479d9f2
parentfeacfaddf0ae39f0ed774f88bc3f124a3cf8ca23
x86: Make E820_X_MAX unconditionally larger than E820MAX

It's really not necessary to limit E820_X_MAX to 128 in the non-EFI
case.  This commit drops E820_X_MAX's dependency on CONFIG_EFI, so that
E820_X_MAX is always at least slightly larger than E820MAX.

The real motivation behind this is actually to prevent some issues in
the Xen kernel, where the XENMEM_machine_memory_map hypercall can
produce an e820 map larger than 128 entries, even on systems where the
original e820 table was quite a bit smaller than that, depending on how
many IOAPICs are installed on the system.

Signed-off-by: Alex Thorlton <athorlton@sgi.com>
Suggested-by: Ingo Molnar <mingo@redhat.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
OraBug: 25497392

(cherry picked from commit 9d2f86c6cad5a8a3f0b38a80136ba68364ca7278)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/include/asm/e820.h