the following is a fix for powerpc page.h to be compliant to a i386&x86_64 xen change made in rev. 13546 and before. In our current task to port our ppc tree to the current 2.6.18 base this is just one more fix we need. It removed issues with "Bad Page State". A similar solution for ia64 was already done in 13868.

The DomU now boots without visible issues, but at least on my system networking in DomU does not yet work - the DomU tihnk its working, but I can't get a connection from/to Dom0. @Hollis - currently you are the only one except me who has an up-to-date forward port patch queue - could you please verify if this is only an issue of my local setup by applying all my latest patches and see what works in your environment.

Background FYI - the issue looked like that (while booting a DomU with network):
[  305.530492] Bad page state in process 'swapper'
[ 305.530493] page:c000000003d13400 flags:0x0040000000100400 mapping:0000000000000000 mapcount:1 count:0


Grüsse / regards, Christian Ehrhardt

IBM Linux Technology Center, Open Virtualization
+49 7031/16-3385

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Johann Weihen Geschäftsführung: Herbert Kircher Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

diff -r 3eeeeb79cfce include/asm-powerpc/page.h
--- a/include/asm-powerpc/page.h	Tue Jun 19 06:15:10 2007 +0200
+++ b/include/asm-powerpc/page.h	Tue Jun 19 06:46:39 2007 +0200
@@ -194,6 +194,15 @@ struct vm_area_struct;
 struct vm_area_struct;
 extern const char *arch_vma_name(struct vm_area_struct *vma);
+#define arch_free_page(_page, _order)       \
+({                      \
+	int foreign = PageForeign(_page);   \
+	if (foreign) \
+		PageForeignDestructor(_page);   \
+	foreign; \
 #include <asm-generic/memory_model.h>
 #endif /* __ASSEMBLY__ */
Xen-ppc-devel mailing list

Reply via email to