From: "Jan Beulich" <jbeulich@novell.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] balloon: don't talk about low/high memory when there is no such distinction
Date: Fri, 23 Jun 2006 14:26:38 +0200 [thread overview]
Message-ID: <449BFA1E.76E4.0078.0@novell.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 85 bytes --]
.. in order to not confuse people.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
[-- Attachment #2: xenlinux-balloon-no-highmem.patch --]
[-- Type: text/plain, Size: 1156 bytes --]
Index: head-2006-06-13/drivers/xen/balloon/balloon.c
===================================================================
--- head-2006-06-13.orig/drivers/xen/balloon/balloon.c 2006-06-14 10:14:15.000000000 +0200
+++ head-2006-06-13/drivers/xen/balloon/balloon.c 2006-06-16 17:15:55.000000000 +0200
@@ -492,11 +492,20 @@ static int balloon_read(char *page, char
page,
"Current allocation: %8lu kB\n"
"Requested target: %8lu kB\n"
+#ifdef CONFIG_HIGHMEM
"Low-mem balloon: %8lu kB\n"
"High-mem balloon: %8lu kB\n"
+#else
+ "Balloon: %8lu kB\n"
+#endif
"Xen hard limit: ",
PAGES2KB(current_pages), PAGES2KB(target_pages),
+#ifdef CONFIG_HIGHMEM
PAGES2KB(balloon_low), PAGES2KB(balloon_high));
+#else
+ PAGES2KB(balloon_low));
+ WARN_ON(balloon_high);
+#endif
if (hard_limit != ~0UL) {
len += sprintf(
@@ -528,9 +537,6 @@ static int __init balloon_init(void)
current_pages = min(xen_start_info->nr_pages, max_pfn);
totalram_pages = current_pages;
target_pages = current_pages;
- balloon_low = 0;
- balloon_high = 0;
- driver_pages = 0UL;
hard_limit = ~0UL;
init_timer(&balloon_timer);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2006-06-23 12:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-23 12:26 Jan Beulich [this message]
2006-06-24 14:51 ` [PATCH] balloon: don't talk about low/high memory when there is no such distinction Muli Ben-Yehuda
2006-06-24 15:04 ` Anthony Liguori
2006-06-26 8:14 ` Jan Beulich
2006-06-27 10:07 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=449BFA1E.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.