xen/balloon: before adding hotplugged memory, set frames to invalid
authorJuergen Gross <jgross@suse.com>
Fri, 20 Mar 2015 12:55:39 +0000 (13:55 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 23 Apr 2015 18:58:26 +0000 (14:58 -0400)
commit76569d5333ee28b64ea5f772b24adecba952c047
tree9b42d8abcca3154ed333af41aabd5365cf2dfd23
parent3b73092996411f0e4c4507f412b56e2974799194
xen/balloon: before adding hotplugged memory, set frames to invalid

[ Upstream commit 3c56b3a12ce52f361468cbdd2f79b2f3b8da0ea6 ]

Commit 25b884a83d487fd62c3de7ac1ab5549979188482 ("x86/xen: set
regions above the end of RAM as 1:1") introduced a regression.

To be able to add memory pages which were added via memory hotplug to
a pv domain, the pages must be "invalid" instead of "identity" in the
p2m list before they can be added.

Suggested-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Cc: <stable@vger.kernel.org> # 3.16+
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/xen/balloon.c