diff options
author | David Vrabel <david.vrabel@citrix.com> | 2015-06-25 13:08:20 +0200 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-10-23 15:20:04 +0200 |
commit | de5a77d8422fc7ed0b2f4349bceb65a1a639e5b2 (patch) | |
tree | 2869757d37883c9c4cd264dcf41c0e31cae37fc7 /include/xen/balloon.h | |
parent | xen/balloon: find non-conflicting regions to place hotplugged memory (diff) | |
download | linux-de5a77d8422fc7ed0b2f4349bceb65a1a639e5b2.tar.xz linux-de5a77d8422fc7ed0b2f4349bceb65a1a639e5b2.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | include/xen/balloon.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/xen/balloon.h b/include/xen/balloon.h index cc2e1a7e44ec..c8aee7a8b8d2 100644 --- a/include/xen/balloon.h +++ b/include/xen/balloon.h @@ -11,14 +11,11 @@ struct balloon_stats { /* Number of pages in high- and low-memory balloons. */ unsigned long balloon_low; unsigned long balloon_high; + unsigned long total_pages; unsigned long schedule_delay; unsigned long max_schedule_delay; unsigned long retry_count; unsigned long max_retry_count; -#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG - unsigned long hotplug_pages; - unsigned long balloon_hotplug; -#endif }; extern struct balloon_stats balloon_stats; |