[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#621072: linux-image-2.6.32-5-amd64: 2.6.32-33 failes to boot as PV domU on Xen



> On Wed, Apr 06, 2011 at 11:48:07AM +0200, Florian Wagner wrote:
> > But this kernel doesn't boot as a PV domU neither on my Citrix
> > XenServer 5.6 FP1 nor on a Debian system with Xen 3.4.3 at all. It
> > doesn't even get so far as to provide a hvc console but crashes
> > with a page fault on domain creation:
> 
> It needs a backport of 67e87f0a1c5cbc750f81ebf6a128e8ff6f4376cc to not
> zero parts of the memory.

I've checked out svn://svn.debian.org/kernel/dists/squeeze/linux-2.6 at
revision 17202 and applied the commit you mentioned. (Had to redo the
patch since the context didn't fit anymore) and the VM boots! (It still
doesn' live mirate reliably, but that's for another bug report.)

I've attached the output of "svn diff".


Thanks and regards
Florian Wagner
Index: debian/patches/bugfix/x86/only-set-max_pfn_mapped-to-512-MiB-if-we-enter-via-head_64.S.patch
===================================================================
--- debian/patches/bugfix/x86/only-set-max_pfn_mapped-to-512-MiB-if-we-enter-via-head_64.S.patch	(revision 0)
+++ debian/patches/bugfix/x86/only-set-max_pfn_mapped-to-512-MiB-if-we-enter-via-head_64.S.patch	(revision 0)
@@ -0,0 +1,23 @@
+diff -Naur source/arch/x86/kernel/head64.c source.patched/arch/x86/kernel/head64.c
+--- source/arch/x86/kernel/head64.c	2011-04-12 10:01:03.103299697 +0000
++++ source.patched/arch/x86/kernel/head64.c	2011-04-12 10:00:32.848195748 +0000
+@@ -76,6 +76,8 @@
+ 	/* Make NULL pointers segfault */
+ 	zap_identity_mappings();
+ 
++	max_pfn_mapped = KERNEL_IMAGE_SIZE >> PAGE_SHIFT;
++
+ 	for (i = 0; i < NUM_EXCEPTION_VECTORS; i++) {
+ #ifdef CONFIG_EARLY_PRINTK
+ 		set_intr_gate(i, &early_idt_handlers[i]);
+diff -Naur source/arch/x86/kernel/setup.c source.patched/arch/x86/kernel/setup.c
+--- source/arch/x86/kernel/setup.c	2011-04-12 10:01:03.103299697 +0000
++++ source.patched/arch/x86/kernel/setup.c	2011-04-12 10:00:32.848195748 +0000
+@@ -913,7 +913,6 @@
+ 		max_low_pfn = max_pfn;
+ 
+ 	high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1;
+-	max_pfn_mapped = KERNEL_IMAGE_SIZE >> PAGE_SHIFT;
+ 	mmu_cr4_features = read_cr4();
+ #endif
+ 
Index: debian/patches/series/34
===================================================================
--- debian/patches/series/34	(revision 17218)
+++ debian/patches/series/34	(working copy)
@@ -1,2 +1,3 @@
 + bugfix/all/ALSA-usb-audio-reduce-MIDI-packet-size-to-work-aroun.patch
 + bugfix/all/ALSA-usb-audio-define-another-USB-ID-for-a-buggy-USB.patch
++ bugfix/x86/only-set-max_pfn_mapped-to-512-MiB-if-we-enter-via-head_64.S.patch

Attachment: signature.asc
Description: PGP signature


Reply to: