xen/balloon: Only mark a page as managed when it is released
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Fri, 9 Dec 2016 17:10:22 +0000 (17:10 +0000)
committerJuergen Gross <jgross@suse.com>
Mon, 12 Dec 2016 14:22:22 +0000 (15:22 +0100)
commit709613ad2b3c9eaeb2a3e24284b7c8feffc17326
tree8715afd7b68201c7180126ced3b3f4065882c8b5
parent581d21a2d02a798ee34e56dbfa13f891b3a90c30
xen/balloon: Only mark a page as managed when it is released

Only mark a page as managed when it is released back to the allocator.
This ensures that the managed page count does not get falsely increased
when a VM is running. Correspondingly change it so that pages are
marked as unmanaged after getting them from the allocator.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/balloon.c