]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/x86: Increase xen_e820_map to E820_X_MAX possible entries
authorAlex Thorlton <athorlton@sgi.com>
Mon, 5 Dec 2016 17:49:14 +0000 (11:49 -0600)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:31 +0000 (15:55 -0500)
commitabb6d9167697bb935e6b2ebf8bdf0526df854d58
tree3bf2b6686e6e4912e87f3b5ad71201f4bd57be24
parent90cffc03965e43845565abaf30eb324e04274a07
xen/x86: Increase xen_e820_map to E820_X_MAX possible entries

On systems with sufficiently large e820 tables, and several IOAPICs, it
is possible for the XENMEM_machine_memory_map callback (and its
counterpart, XENMEM_memory_map) to attempt to return an e820 table with
more than 128 entries.  This callback adds entries to the BIOS-provided
e820 table to account for IOAPIC registers, which, on sufficiently large
systems, can result in an e820 table that is too large to copy back into
xen_e820_map.

This change simply increases the size of xen_e820_map to E820_X_MAX to
ensure that there is enough room to store the entire e820 map returned
from this callback.

Signed-off-by: Alex Thorlton <athorlton@sgi.com>
Suggested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
OraBug: 25497392

(cherry picked from commit 738662c35c491fc360bb6adcb8a0db88d87b5d88)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/xen/setup.c