All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make balloon driver not return pages which are in [xen_start_info->nr_pages, max_pfn] on ia64
@ 2007-01-04  9:06 Isaku Yamahata
  2007-01-04 10:03 ` [PATCH] make balloon driver not return pages which are in [xen_start_info->nr_pages, Jan Beulich
  2007-01-05 17:04 ` [PATCH] make balloon driver not return pages which are in [xen_start_info->nr_pages, max_pfn] on ia64 Alex Williamson
  0 siblings, 2 replies; 22+ messages in thread
From: Isaku Yamahata @ 2007-01-04  9:06 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

make balloon driver not return pages which are in
[xen_start_info->nr_pages, max_pfn] on ia64.
On ia64 memory might be assigned sparsely. In that case
xen_start_info->nr_pages and max_pfn doesn't match while pages which are in
[xen_start_info->nr_pages, max_pfn] are used.

-- 
yamahata

[-- Attachment #2: 13183_222d8ad62562_fix_balloon_init.patch --]
[-- Type: text/plain, Size: 1451 bytes --]

# HG changeset patch
# User yamahata@valinux.co.jp
# Date 1166688432 -32400
# Node ID 222d8ad625624a4880d63c40d46907cd3ce23d86
# Parent  407401ea3792efe50b713381e62ef59d3b0964fe
make balloon driver not return pages which are in
[xen_start_info->nr_pages, max_pfn] on ia64.
On ia64 memory might be assigned sparsely. In that case
xen_start_info->nr_pages and max_pfn doesn't match while pages which are in
[xen_start_info->nr_pages, max_pfn] are used.
PATCHNAME: fix_balloon_init

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

diff -r 407401ea3792 -r 222d8ad62562 linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c
--- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Thu Dec 21 15:36:31 2006 +0900
+++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Thu Dec 21 17:07:12 2006 +0900
@@ -446,8 +446,10 @@ static struct notifier_block xenstore_no
 
 static int __init balloon_init(void)
 {
+#ifndef __ia64__
 	unsigned long pfn;
 	struct page *page;
+#endif
 
 	if (!is_running_on_xen())
 		return -ENODEV;
@@ -477,12 +479,14 @@ static int __init balloon_init(void)
 #endif
 	balloon_sysfs_init();
     
+#ifndef __ia64__
 	/* Initialise the balloon with excess memory space. */
 	for (pfn = xen_start_info->nr_pages; pfn < max_pfn; pfn++) {
 		page = pfn_to_page(pfn);
 		if (!PageReserved(page))
 			balloon_append(page);
 	}
+#endif
 
 	target_watch.callback = watch_target;
 	xenstore_notifier.notifier_call = balloon_init_watcher;

[-- 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] 22+ messages in thread

end of thread, other threads:[~2007-01-27 14:40 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04  9:06 [PATCH] make balloon driver not return pages which are in [xen_start_info->nr_pages, max_pfn] on ia64 Isaku Yamahata
2007-01-04 10:03 ` [PATCH] make balloon driver not return pages which are in [xen_start_info->nr_pages, Jan Beulich
2007-01-04 13:49   ` Isaku Yamahata
2007-01-05 17:04 ` [PATCH] make balloon driver not return pages which are in [xen_start_info->nr_pages, max_pfn] on ia64 Alex Williamson
2007-01-05 17:35   ` Keir Fraser
2007-01-05 23:51     ` Unmodified_drivers modules broke again for 3.0.4? Liang Yang
2007-01-06 11:44       ` Ian Campbell
2007-01-08 16:56         ` Xen Still hangs up when insmod xenbus.ko. " Liang Yang
2007-01-09 19:43           ` What is the implication to use 'module' directive instead of 'initrd' to load ramdisk? Liang Yang
2007-01-09 22:25             ` Why is xen_changeset information not available when doing xm info? Liang Yang
2007-01-10 10:13               ` Keir Fraser
2007-01-10 17:15                 ` Liang Yang
2007-01-10 10:09             ` What is the implication to use 'module' directive instead of 'initrd' to load ramdis Jan Beulich
2007-01-10 17:49               ` What is the implication to use 'module'directive " Liang Yang
2007-01-10 21:28                 ` Re: [Xen-devel] " Edney Matias
2007-01-11  8:49                 ` Jan Beulich
2007-01-11  9:28                   ` Ian Campbell
2007-01-27  2:43           ` Xen Still hangs up when insmod xenbus.ko. Re: Unmodified_drivers modules broke again for 3.0.4? Kurt Hackel
2007-01-27  9:07             ` Keir Fraser
2007-01-27 11:59               ` Cui, Dexuan
2007-01-27 13:14                 ` Keir Fraser
2007-01-27 14:40                   ` Cui, Dexuan

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.