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)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 23 Mar 2015 15:15:53 +0000 (15:15 +0000)
commit3c56b3a12ce52f361468cbdd2f79b2f3b8da0ea6
treeffac75cc428c294f9293527deb7fae24e21fd46d
parent633d6f17cd91ad5bf2370265946f716e42d388c6
xen/balloon: before adding hotplugged memory, set frames to invalid

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>
drivers/xen/balloon.c