All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] balloon: don't talk about low/high memory when there is no such distinction
@ 2006-06-23 12:26 Jan Beulich
  2006-06-24 14:51 ` Muli Ben-Yehuda
  2006-06-27 10:07 ` Keir Fraser
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Beulich @ 2006-06-23 12:26 UTC (permalink / raw)
  To: xen-devel

[-- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-27 10:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-23 12:26 [PATCH] balloon: don't talk about low/high memory when there is no such distinction Jan Beulich
2006-06-24 14:51 ` Muli Ben-Yehuda
2006-06-24 15:04   ` Anthony Liguori
2006-06-26  8:14   ` Jan Beulich
2006-06-27 10:07 ` Keir Fraser

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.