mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[BALLOON] Make /proc/xen/ballon contain driver_pages (aka "driver headroom") unconditionally.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
This commit is contained in:
1 parent
7ee41b61d8
commit
eafec813bf
1 file changed
+7
-11
@@ -440,20 +440,16 @@ static int balloon_read(char *page, char **start, off_t off,
|
||||
"Requested target: %8lu kB\n"
|
||||
"Low-mem balloon: %8lu kB\n"
|
||||
"High-mem balloon: %8lu kB\n"
|
||||
"Driver pages: %8lu kB\n"
|
||||
"Xen hard limit: ",
|
||||
PAGES2KB(current_pages), PAGES2KB(target_pages),
|
||||
PAGES2KB(balloon_low), PAGES2KB(balloon_high));
|
||||
PAGES2KB(balloon_low), PAGES2KB(balloon_high),
|
||||
PAGES2KB(driver_pages));
|
||||
|
||||
if (hard_limit != ~0UL) {
|
||||
len += sprintf(
|
||||
page + len,
|
||||
"%8lu kB (inc. %8lu kB driver headroom)\n",
|
||||
PAGES2KB(hard_limit), PAGES2KB(driver_pages));
|
||||
} else {
|
||||
len += sprintf(
|
||||
page + len,
|
||||
" ??? kB\n");
|
||||
}
|
||||
if (hard_limit != ~0UL)
|
||||
len += sprintf(page + len, "%8lu kB\n", PAGES2KB(hard_limit));
|
||||
else
|
||||
len += sprintf(page + len, " ??? kB\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
|
||||