--- linux-2.6.18-xen.hg-xenU/drivers/xen/Kconfig 2008-05-20 13:48:59.576488000 +0200 +++ linux-2.6.18-xen.hg-xenU.bak/drivers/xen/Kconfig 2008-07-03 11:08:30.185692418 +0200 @@ -255,6 +255,13 @@ Disable serial port drivers, allowing the Xen console driver to provide a serial console at ttyS0. +config XEN_DAEMON_BALLOON_SUPPORT + bool "Enable xen daemon balloon support" + depends XEN_UNPRIVILEGED_GUEST + default n + help + Enable xen daemon balloon support + config XEN_SYSFS tristate "Export Xen attributes in sysfs" depends on SYSFS --- linux-2.6.18-xen.hg-xenU/fs/proc/proc_misc.c 2008-05-20 13:49:00.866441000 +0200 +++ linux-2.6.18-xen.hg-xenU.bak/fs/proc/proc_misc.c 2008-07-03 11:15:09.735692418 +0200 @@ -52,6 +52,10 @@ #include #include "internal.h" +#ifdef CONFIG_XEN_DAEMON_BALLOON_SUPPORT +#include +#endif + #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) /* @@ -203,6 +207,13 @@ vmi.used >> 10, vmi.largest_chunk >> 10 ); +#ifdef CONFIG_XEN_DAEMON_BALLOON_SUPPORT + (void)xenbus_printf(XBT_NIL, "memory", "Committed_AS", + "%lu", K(committed) ); + (void)xenbus_printf(XBT_NIL, "memory", "MemTotal", + "%lu", K(i.totalram) ); +#endif + len += hugetlb_report_meminfo(page + len);