Skip to contentSkip to conversation

can't boot upstream kernel in PV guest with recent xen trees

DISCUSSION Dan Magenheimer 2 participants 3 messages May 12, 2010 – May 13, 2010

lore
Share & tools
lore
#0 lore raw

After Xen summit, I tried to update a couple of my machines to more recent bits. Ever since then, I have been unable to boot an upstream kernel in a PV guest! I have tried 2.6.32, 2.6.33.1, and 2.6.34-rc5 kernels on tips of xen-3.4-testing, xen-4.0-testing, and xen-unstable. In each case, I am sure I am using a kernel config file and the same process as a couple of months ago when everything was working fine, probably on a pre-4.0 Xen. I also found an old PV guest which I'm fairly sure booted 2.6.30 fine and has sat unused for many months and that failed as well. However I am able to boot a PV guest containing a pre-built RHEL6beta 2.6.32-19 kernel, so it is not ALL upstream kernels.

(Konrad pointed me offlist to a upstream-kernel-on-Xen bug where the workaround was to de-config CONFIG_DEBUG_RODATA... this made no difference. And, yes, I'm following all the instructions in
http://wiki.xensource.com/xenwiki/2.6.18-to-2.6.31-and-higher)

Every time, I get some kind of guest panic, not always identical but often similar to below (and longer version attached). Every panic I've seen contains xen_restore_fl_direct_end in the stacktrace, though this could be a red herring. And I've seen the problem on two very different (though both Intel) boxen.

Is it possible some bug fix was recently applied into all three xen trees that creates or exposes a problem in upstream kernels built with certain CONFIG_ options booting in PV guests? (I've also attached the config file used to build the 2.6.32 kernel that panic'ed.)

Or hopefully someone will find this familiar or
reproducible and can suggest an answer? I'm dead
in the water on one of my activities until I can
get an upstream kernel booting in a PV guest

Thanks for any help or suggestions!
Dan

<snip>
Freeing unused kernel memory: 468k freed modprobe used greatest stack depth: 6120 bytes left init used greatest stack depth: 5568 bytes left

Kernel panic - not syncing: Attempted to kill init!
Pid: 1, comm: init Not tainted 2.6.32 #2
Call Trace:
 [<ffffffff8103d87a>] ? panic+0x86/0x141
 [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1001
 [<ffffffff8100e21f>] ? xen_restore_fl_direct_end+0x0/0x1
 [<ffffffff8100dc15>] ? xen_force_evtchn_callback+0x9/0xa
 [<ffffffff8100e232>] ? check_events+0x12/0x20
 [<ffffffff8100e21f>] ? xen_restore_fl_direct_end+0x0/0x1
 [<ffffffff8100e1d9>] ? xen_irq_enable_direct_end+0x0/0x7
 [<ffffffff81046287>] ? exit_ptrace+0x8a/0xf3
 [<ffffffff81040301>] ? do_exit+0x72/0x68a
 [<ffffffff8104098c>] ? do_group_exit+0x73/0x9d
 [<ffffffff8135ed3c>] ? _spin_unlock_irqrestore+0xc/0xd
 [<ffffffff810409c8>] ? sys_exit_group+0x12/0x16
 [<ffffffff8135f2aa>] ? error_exit+0x2a/0x60
 [<ffffffff81010902>] ? system_call_fastpath+0x16/0x1b

Linux version 2.6.32 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #2 SMP Wed May 12 16:31:01 EDT 2010
Command line: ro root=LABEL=/
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
Centaur CentaurHauls
ACPI in unprivileged domain disabled
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 00000000000a0000 (usable)
Xen: 00000000000a0000 - 0000000000100000 (reserved)
Xen: 0000000000100000 - 0000000060000000 (usable)
DMI not present or invalid.
last_pfn = 0x60000 max_arch_pfn = 0x400000000
init_memory_mapping: 0000000000000000-0000000060000000
RAMDISK: 0168b000 - 01b56000
(7 early reservations) ==> bootmem [0000000000 - 0060000000]
#0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
#1 [0001e59000 - 0001e6c000] XEN PAGETABLES ==> [0001e59000 - 0001e6c000]
#2 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000]
#3 [0001000000 - 000166ae98] TEXT DATA BSS ==> [0001000000 - 000166ae98]
#4 [000168b000 - 0001b56000] RAMDISK ==> [000168b000 - 0001b56000]
#5 [0001b56000 - 0001e59000] XEN START INFO ==> [0001b56000 - 0001e59000]
#6 [0000100000 - 00003ed000] PGTABLE ==> [0000100000 - 00003ed000]
Zone PFN ranges:

  DMA      0x00000000 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000000 -> 0x000000a0
    0: 0x00000100 -> 0x00060000

SMP: Allowing 2 CPUs, 0 hotplug CPUs
No local APIC present
APIC: disable apic facility
Allocating PCI resources starting at 60000000 (gap: 60000000:a0000000)
Booting paravirtualized kernel on Xen
Xen version: 4.1-unstable (preserve-AD)
NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 28 pages/cpu @ffff880001e7f000 s83800 r8192 d22696 u114688
pcpu-alloc: s83800 r8192 d22696 u114688 alloc=28*4096
pcpu-alloc: [0] 0 [0] 1
Xen: using vcpu_info placement
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 386992
Kernel command line: ro root=LABEL=/
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Initializing CPU#0
Checking aperture...
No AGP bridge found
Memory: 1529264k/1572864k available (3468k kernel code, 384k absent, 42636k reserved, 1862k data, 468k init) Hierarchical RCU implementation.
NR_IRQS:512
Console: colour dummy device 80x25
console [tty0] enabled
console [hvc0] enabled
installing Xen timer for CPU 0
Detected 2933.508 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 5867.01 BogoMIPS (lpj=11734032) Security Framework initialized
SELinux: Initializing.
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU: Unsupported number of siblings 16
Performance Events: unsupported p6 CPU model 26 no PMU driver, software events only.
SMP alternatives: switching to UP code
installing Xen timer for CPU 1
SMP alternatives: switching to SMP code
Initializing CPU#1
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU: Unsupported number of siblings 16
Brought up 2 CPUs
khelper used greatest stack depth: 6320 bytes left
Grant table initialized
NET: Registered protocol family 16
khelper used greatest stack depth: 6232 bytes left

PCI: Fatal: No config space access function found
bio: create slab <bio-0> at 0
ACPI: Interpreter disabled.
xen_balloon: Initialising balloon driver.
vgaarb: loaded
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default

Switching to clocksource xen
pnp: PnP ACPI: disabled
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 4908k freed
platform rtc_cmos: registered platform RTC device (no PNP device found)
audit: initializing netlink socket (disabled)
type=2000 audit(1273700592.413:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Btrfs loaded
msgmni has been set to 3081
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Console: switching to colour frame buffer device 100x37
console [tty0] enabled
Event-channel device installed.
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
brd: module loaded
Uniform Multi-Platform E-IDE driver
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports
ide_generic: I/O resource 0x1F0-0x1F7 not free.
ide_generic: I/O resource 0x170-0x177 not free.
ide-gd driver 1.18
Initialising Xen virtual ethernet driver.
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
input: Xen Virtual Keyboard as /class/input/input0
input: Xen Virtual Pointer as /class/input/input1
cpuidle: using governor ladder
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP bic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
blkfront: xvda: barriers enabled
xvda: xvda1 xvda2 xvda3
XENBUS: Device with no driver: device/console/0
Freeing unused kernel memory: 468k freed
modprobe used greatest stack depth: 6120 bytes left
init used greatest stack depth: 5568 bytes left

Kernel panic - not syncing: Attempted to kill init!
Pid: 1, comm: init Not tainted 2.6.32 #2
Call Trace:
 [<ffffffff8103d87a>] ? panic+0x86/0x141
 [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1001
 [<ffffffff8100e21f>] ? xen_restore_fl_direct_end+0x0/0x1
 [<ffffffff8100dc15>] ? xen_force_evtchn_callback+0x9/0xa
 [<ffffffff8100e232>] ? check_events+0x12/0x20
 [<ffffffff8100e21f>] ? xen_restore_fl_direct_end+0x0/0x1
 [<ffffffff8100e1d9>] ? xen_irq_enable_direct_end+0x0/0x7
 [<ffffffff81046287>] ? exit_ptrace+0x8a/0xf3
 [<ffffffff81040301>] ? do_exit+0x72/0x68a
 [<ffffffff8104098c>] ? do_group_exit+0x73/0x9d
 [<ffffffff8135ed3c>] ? _spin_unlock_irqrestore+0xc/0xd
 [<ffffffff810409c8>] ? sys_exit_group+0x12/0x16
 [<ffffffff8135f2aa>] ? error_exit+0x2a/0x60
 [<ffffffff81010902>] ? system_call_fastpath+0x16/0x1b

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 10 lines · Dan Magenheimer

Is it possible some bug fix was recently applied into all three xen trees that creates or exposes a problem in upstream kernels built with certain CONFIG_ options booting in PV guests? (I've also attached the config file used to build the 2.6.32 kernel that panic'ed.)

Or hopefully someone will find this familiar or reproducible and can suggest an answer? I'm dead in the water on one of my activities until I can get an upstream kernel booting in a PV guest

Try 4.0.0 release. I'm sure people have been booting pv_ops kernels with that okay. I think this problem is somehow specific to your test machine.

-- Keir

#2 lore raw
Quoted 11 lines
Quoted 10 lines

Is it possible some bug fix was recently applied into all three xen trees that creates or exposes a problem in upstream kernels built with certain CONFIG_ options booting in PV guests? (I've also attached the config file used to build the 2.6.32 kernel that panic'ed.)

Or hopefully someone will find this familiar or reproducible and can suggest an answer? I'm dead in the water on one of my activities until I can get an upstream kernel booting in a PV guest

Quoted 4 lines

Try 4.0.0 release. I'm sure people have been booting pv_ops kernels with
that okay. I think this problem is somehow specific to your test machine.

Thanks for the reply!

After much teeth-gnashing and hair-pulling, I think I figured out the problem -- though not yet a full solution. When I follow the exact build process and use the same config file to boot an upstream kernel in a *64-bit* VM, it panics every time (including on 4.0.0). On a *32-bit* VM, it boots fine every time.

I suspect that I have never (before last week) attempted to build/boot an upstream kernel in a 64-bit VM. I further suspect that there is something in the config file that I am using (possibly something annoyingly stupid) that doesn't cause a 64-bit *build* to fail but does cause the 64-bit boot to fail.