diff options
author | David Vrabel <david.vrabel@citrix.com> | 2015-06-25 07:08:20 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-10-23 09:20:04 -0400 |
commit | de5a77d8422fc7ed0b2f4349bceb65a1a639e5b2 (patch) | |
tree | 2869757d37883c9c4cd264dcf41c0e31cae37fc7 /include/xen | |
parent | 55b3da98a40dbb3776f7454daf0d95dde25c33d2 (diff) |
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 'include/xen')
-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 { | |||
11 | /* Number of pages in high- and low-memory balloons. */ | 11 | /* Number of pages in high- and low-memory balloons. */ |
12 | unsigned long balloon_low; | 12 | unsigned long balloon_low; |
13 | unsigned long balloon_high; | 13 | unsigned long balloon_high; |
14 | unsigned long total_pages; | ||
14 | unsigned long schedule_delay; | 15 | unsigned long schedule_delay; |
15 | unsigned long max_schedule_delay; | 16 | unsigned long max_schedule_delay; |
16 | unsigned long retry_count; | 17 | unsigned long retry_count; |
17 | unsigned long max_retry_count; | 18 | unsigned long max_retry_count; |
18 | #ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG | ||
19 | unsigned long hotplug_pages; | ||
20 | unsigned long balloon_hotplug; | ||
21 | #endif | ||
22 | }; | 19 | }; |
23 | 20 | ||
24 | extern struct balloon_stats balloon_stats; | 21 | extern struct balloon_stats balloon_stats; |