]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/xen: prepare p2m list for memory hotplug
authorJuergen Gross <jgross@suse.com>
Fri, 20 Mar 2015 12:55:38 +0000 (13:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Apr 2015 08:10:16 +0000 (10:10 +0200)
commitefdb92dc5ecc1faecf6ee26f3edc07b144105571
tree9a937dea67522e44dc40a6ac54b9ae287891f2a1
parentb53e7c40642d850ea4a7ca329893ddfab7e79cb0
x86/xen: prepare p2m list for memory hotplug

commit 633d6f17cd91ad5bf2370265946f716e42d388c6 upstream.

Commit 054954eb051f35e74b75a566a96fe756015352c8 ("xen: switch to linear
virtual mapped sparse p2m list") introduced a regression regarding to
memory hotplug for a pv-domain: as the virtual space for the p2m list
is allocated for the to be expected memory size of the domain only,
hotplugged memory above that size will not be usable by the domain.

Correct this by using a configurable size for the p2m list in case of
memory hotplug enabled (default supported memory size is 512 GB for
64 bit domains and 4 GB for 32 bit domains).

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/p2m.c
drivers/xen/Kconfig