xen/balloon: rationalize memory hotplug stats
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 25 Jun 2015 11:08:20 +0000 (12:08 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:04 +0000 (14:20 +0100)
commitde5a77d8422fc7ed0b2f4349bceb65a1a639e5b2
tree2869757d37883c9c4cd264dcf41c0e31cae37fc7
parent55b3da98a40dbb3776f7454daf0d95dde25c33d2
xen/balloon: rationalize memory hotplug stats

The stats used for memory hotplug make no sense and are fiddled with
in odd ways.  Remove them and introduce total_pages to track the total
number of pages (both populated and unpopulated) including those within
hotplugged regions (note that this includes not yet onlined pages).

This will be used in a subsequent commit (xen/balloon: only hotplug
additional memory if required) when deciding whether additional memory
needs to be hotplugged.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
drivers/xen/balloon.c
include/xen/balloon.h