2.6.16 Guest Hangs on Boot
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Checking if this processor honours the WP bit even in supervisor
mode... Ok.
There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.iso
Adding -no-acpi allows the bootup to progress for a little bit then hangs again with no further error messages after:
PCI: PCI BIOS revision 2.10 entry at 0xffe77, last bus=0
PCI: Using configuration type 1
I tried adding kernel parameters like noapic, nolapic and pci=xxx but to no avail. Adding -no-kvm allows somewhat normal operations but I/O breakdowns after awhile. Kernel logs say something about dma timer expiry. nolapic_timer on the kernel commandline seems to fix it. But no one likes to settle with -no-kvm right :-)
I tried -no-kvm-irqchip and -no-kvm-pit separately, then together, but they also don't have any effect. Still hangs after the WP bit checking part.
I made some digging and found out that Foundations is actually based on SLES 10 and uses a rather old 2.6.16 kernel. On kvm's changelog, kvm-47 already had added support for these kernels. Might this be a regression?
My host kernel is 2.6.35 and qemu-kvm is 0.12.5. modinfo kvm gives nothing about the kvm version though..
Anyone got some suggestions I could try? BTW, kernel rebuilding is not an option on Foundations :-(
Thanks.
Cheese!
Agi
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 6 lines · Alec Joseph Rivera
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Quoted 6 lines
Checking if this processor honours the WP bit even in supervisor
mode... Ok.There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.iso
Your host is probably too new for this old guest. -cpu host directly passes through this host cpu's identifiers on which the guest might choke. Please try again without -cpu.
Alex
Quoted 8 lines · Alexander Graf
Quoted 6 lines · Alec Joseph Rivera
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Quoted 10 lines
Quoted 6 lines
Checking if this processor honours the WP bit even in supervisor
mode... Ok.There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.isoYour host is probably too new for this old guest. -cpu host directly passes through this host cpu's identifiers on which the guest might choke. Please try again without -cpu.
Tried without -cpu, still hangs after the WP bit checking...
$ qemu-kvm -m 1G -cdrom lfs.iso
I was scanning the changelogs and read something about a -no-kernel-irqchip. The man page doesn't say anything about it but will try this one too..
Quoted 2 lines
Alex
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 20 lines · Alec Joseph Rivera
Quoted 8 lines · Alexander Graf
Quoted 6 lines · Alec Joseph Rivera
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Quoted 10 lines
Quoted 6 lines
Checking if this processor honours the WP bit even in supervisor mode... Ok.
There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.isoYour host is probably too new for this old guest. -cpu host directly passes through this host cpu's identifiers on which the guest might choke. Please try again without -cpu.
Quoted 7 lines
Tried without -cpu, still hangs after the WP bit checking...
$ qemu-kvm -m 1G -cdrom lfs.isoI was scanning the changelogs and read something about a -no-kernel-irqchip. The man page doesn't say anything about it but will try this one too..
Please try:
$ qemu-kvm -m 1G -cdrom lfs.iso -serial stdio
Then when it shows the bootloader, add "console=ttyS0" to the kernel command line. That should give all the debugging output necessary.
Alex
Quoted 30 lines · Alexander Graf
Quoted 20 lines · Alec Joseph Rivera
Quoted 8 lines · Alexander Graf
Quoted 6 lines · Alec Joseph Rivera
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Quoted 10 lines
Quoted 6 lines
Checking if this processor honours the WP bit even in supervisor mode... Ok.
There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.isoYour host is probably too new for this old guest. -cpu host directly passes through this host cpu's identifiers on which the guest might choke. Please try again without -cpu.
Quoted 7 lines
Tried without -cpu, still hangs after the WP bit checking...
$ qemu-kvm -m 1G -cdrom lfs.isoI was scanning the changelogs and read something about a -no-kernel-irqchip. The man page doesn't say anything about it but will try this one too..
Quoted 7 lines
Please try:
$ qemu-kvm -m 1G -cdrom lfs.iso -serial stdioThen when it shows the bootloader, add "console=ttyS0" to the kernel command line. That should give all the debugging output necessary.
Already done this one too (I've read it from your conversations with a Peter guy if I'm not mistaken).
It just stops with no panic messages right after the mentioned checking part, which made me dig after timers (bogomips calibration should be next I believe). But I've gotten nowhere so far...
Also, there's no -no-kernel-irqchip parameter, must have been a typo for -no-kvm-irqchip.
-- begin kernel messages
Quoted 33 lines
Linux version 2.6.16.54-0.2.5-bigsmp (geeko@buildhost) (gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)) #1 SMP Mon Jan 21 08:29:51 EST 2008 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 -000000000009f400(usable)
BIOS-e820:000000000009f400-00000000000a0000(reserved)
BIOS-e820:00000000000f0000- 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 -000000003fffd000(usable)
BIOS-e820:000000003fffd000- 0000000040000000 (reserved)
BIOS-e820:00000000fffbc000- 0000000100000000 (reserved)
127MB HIGHMEM available.
895MB LOWMEM available.
found SMP MP-table at000f8990
DMI 2.4 present.
Using APIC driver default
ACPI: PM-Timer IO Port:0xb008
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:11 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 15:11 APIC version 20
Overriding APIC driver with bigsmp
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]:apic_id2, version 17, address0xfec00000, GSI 0-23
ACPI:INT_SRC_OVR(bus 0bus_irq0global_irq2 dfl dfl)
ACPI:INT_SRC_OVR(bus 0bus_irq5global_irq5 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq9global_irq9 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq10global_irq10 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq11global_irq11 high level)
Enabling APIC mode: Physflat. Using 1 I/O APICs
ACPI: HPET id:0x8086a201base:0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bffbc000)
Built 1 zonelists
Kernel command line: ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_IMAGE=k12_1009 console=ttyS0
Enabling fast FPU save and restore... done.
Quoted 8 lines
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.
-- end
Quoted 2 lines
Alex
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Linux version 2.6.16.54-0.2.5-bigsmp (geeko@buildhost) (gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)) #1 SMP Mon Jan 21 08:29:51 EST 2008 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
127MB HIGHMEM available.
895MB LOWMEM available.
found SMP MP-table at 000f8990
DMI 2.4 present.
Using APIC driver default
ACPI: PM-Timer IO Port: 0xb008
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:11 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 15:11 APIC version 20
Overriding APIC driver with bigsmp
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
Enabling APIC mode: Physflat. Using 1 I/O APICs
ACPI: HPET id: 0x8086a201 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bffbc000)
Built 1 zonelists
Kernel command line: ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_IMAGE=k12_1009 console=ttyS0
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Quoted 42 lines · Alec Joseph Rivera
Quoted 30 lines · Alexander Graf
Quoted 20 lines · Alec Joseph Rivera
Quoted 8 lines · Alexander Graf
Quoted 6 lines · Alec Joseph Rivera
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Quoted 10 lines
Quoted 6 lines
Checking if this processor honours the WP bit even in supervisor mode... Ok.
There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.isoYour host is probably too new for this old guest. -cpu host directly passes through this host cpu's identifiers on which the guest might choke. Please try again without -cpu.
Quoted 7 lines
Tried without -cpu, still hangs after the WP bit checking...
$ qemu-kvm -m 1G -cdrom lfs.isoI was scanning the changelogs and read something about a -no-kernel-irqchip. The man page doesn't say anything about it but will try this one too..
Quoted 7 lines
Please try:
$ qemu-kvm -m 1G -cdrom lfs.iso -serial stdioThen when it shows the bootloader, add "console=ttyS0" to the kernel command line. That should give all the debugging output necessary.
Already done this one too (I've read it from your conversations with a Peter guy if I'm not mistaken).
Quoted 49 lines
It just stops with no panic messages right after the mentioned checking part, which made me dig after timers (bogomips calibration should be next I believe). But I've gotten nowhere so far...
Also, there's no -no-kernel-irqchip parameter, must have been a typo for -no-kvm-irqchip.
-- begin kernel messages
Quoted 41 lines
Linux version 2.6.16.54-0.2.5-bigsmp (geeko@buildhost) (gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)) #1 SMP Mon Jan 21 08:29:51 EST 2008 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 -000000000009f400(usable)
BIOS-e820:000000000009f400-00000000000a0000(reserved)
BIOS-e820:00000000000f0000- 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 -000000003fffd000(usable)
BIOS-e820:000000003fffd000- 0000000040000000 (reserved)
BIOS-e820:00000000fffbc000- 0000000100000000 (reserved)
127MB HIGHMEM available.
895MB LOWMEM available.
found SMP MP-table at000f8990
DMI 2.4 present.
Using APIC driver default
ACPI: PM-Timer IO Port:0xb008
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:11 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 15:11 APIC version 20
Overriding APIC driver with bigsmp
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]:apic_id2, version 17, address0xfec00000, GSI 0-23
ACPI:INT_SRC_OVR(bus 0bus_irq0global_irq2 dfl dfl)
ACPI:INT_SRC_OVR(bus 0bus_irq5global_irq5 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq9global_irq9 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq10global_irq10 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq11global_irq11 high level)
Enabling APIC mode: Physflat. Using 1 I/O APICs
ACPI: HPET id:0x8086a201base:0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bffbc000)
Built 1 zonelists
Kernel command line: ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_IMAGE=k12_1009 console=ttyS0
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Interesting. Mind to check if you find a the vmlinux binary for that kernel on the cd? Maybe it's hidden inside an rpm. Then you can use:
$ qemu-kvm -s -cdrom ... $ gdb <vmlinux> -ex 'target remote localhost:1234'
(gdb) bt
That should give us a clue on what's going wrong.
Also, does the host's dmesg say anything?
Alex
Quoted 94 lines · Alexander Graf
Quoted 42 lines · Alec Joseph Rivera
Quoted 30 lines · Alexander Graf
Quoted 20 lines · Alec Joseph Rivera
Quoted 8 lines · Alexander Graf
Quoted 6 lines · Alec Joseph Rivera
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Quoted 10 lines
Quoted 6 lines
Checking if this processor honours the WP bit even in supervisor mode... Ok.
There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.isoYour host is probably too new for this old guest. -cpu host directly passes through this host cpu's identifiers on which the guest might choke. Please try again without -cpu.
Quoted 7 lines
Tried without -cpu, still hangs after the WP bit checking...
$ qemu-kvm -m 1G -cdrom lfs.isoI was scanning the changelogs and read something about a -no-kernel-irqchip. The man page doesn't say anything about it but will try this one too..
Quoted 7 lines
Please try:
$ qemu-kvm -m 1G -cdrom lfs.iso -serial stdioThen when it shows the bootloader, add "console=ttyS0" to the kernel command line. That should give all the debugging output necessary.
Already done this one too (I've read it from your conversations with a Peter guy if I'm not mistaken).
Quoted 49 lines
It just stops with no panic messages right after the mentioned checking part, which made me dig after timers (bogomips calibration should be next I believe). But I've gotten nowhere so far...
Also, there's no -no-kernel-irqchip parameter, must have been a typo for -no-kvm-irqchip.
-- begin kernel messages
Quoted 41 lines
Linux version 2.6.16.54-0.2.5-bigsmp (geeko@buildhost) (gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)) #1 SMP Mon Jan 21 08:29:51 EST 2008 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 -000000000009f400(usable)
BIOS-e820:000000000009f400-00000000000a0000(reserved)
BIOS-e820:00000000000f0000- 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 -000000003fffd000(usable)
BIOS-e820:000000003fffd000- 0000000040000000 (reserved)
BIOS-e820:00000000fffbc000- 0000000100000000 (reserved)
127MB HIGHMEM available.
895MB LOWMEM available.
found SMP MP-table at000f8990
DMI 2.4 present.
Using APIC driver default
ACPI: PM-Timer IO Port:0xb008
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:11 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 15:11 APIC version 20
Overriding APIC driver with bigsmp
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]:apic_id2, version 17, address0xfec00000, GSI 0-23
ACPI:INT_SRC_OVR(bus 0bus_irq0global_irq2 dfl dfl)
ACPI:INT_SRC_OVR(bus 0bus_irq5global_irq5 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq9global_irq9 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq10global_irq10 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq11global_irq11 high level)
Enabling APIC mode: Physflat. Using 1 I/O APICs
ACPI: HPET id:0x8086a201base:0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bffbc000)
Built 1 zonelists
Kernel command line: ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_IMAGE=k12_1009 console=ttyS0
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Quoted 9 lines
Interesting. Mind to check if you find a the vmlinux binary for that kernel on the cd? Maybe it's hidden inside an rpm. Then you can use:
$ qemu-kvm -s -cdrom ... $ gdb <vmlinux> -ex 'target remote localhost:1234'(gdb) bt
That should give us a clue on what's going wrong.
Sure will do this. I'll update the list later this morning.
Quoted 2 lines
Also, does the host's dmesg say anything?
Nothing on the host's dmesg too. I've checked {kernel,messages,syslog,everything}.log just to be safe but they're on the clear also...
Meanwhile gotta sleep. Thanks for the help so far.
Quoted 2 lines
Alex
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Alec Joseph Rivera wrote:
[]
Quoted 4 lines
Quoted 3 lines
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.-- end
Hm. There was some error with earlier kernels and kvm that resulted in exactly this behavour. Maybe even a (guest) kernel bug.. no? My memory is vague in this area, but it tells there was something...
/mjt
Quoted 94 lines · Alexander Graf
Quoted 42 lines · Alec Joseph Rivera
Quoted 30 lines · Alexander Graf
Quoted 20 lines · Alec Joseph Rivera
Quoted 8 lines · Alexander Graf
Quoted 6 lines · Alec Joseph Rivera
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Quoted 10 lines
Quoted 6 lines
Checking if this processor honours the WP bit even in supervisor mode... Ok.
There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.isoYour host is probably too new for this old guest. -cpu host directly passes through this host cpu's identifiers on which the guest might choke. Please try again without -cpu.
Quoted 7 lines
Tried without -cpu, still hangs after the WP bit checking...
$ qemu-kvm -m 1G -cdrom lfs.isoI was scanning the changelogs and read something about a -no-kernel-irqchip. The man page doesn't say anything about it but will try this one too..
Quoted 7 lines
Please try:
$ qemu-kvm -m 1G -cdrom lfs.iso -serial stdioThen when it shows the bootloader, add "console=ttyS0" to the kernel command line. That should give all the debugging output necessary.
Already done this one too (I've read it from your conversations with a Peter guy if I'm not mistaken).
Quoted 49 lines
It just stops with no panic messages right after the mentioned checking part, which made me dig after timers (bogomips calibration should be next I believe). But I've gotten nowhere so far...
Also, there's no -no-kernel-irqchip parameter, must have been a typo for -no-kvm-irqchip.
-- begin kernel messages
Quoted 41 lines
Linux version 2.6.16.54-0.2.5-bigsmp (geeko@buildhost) (gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)) #1 SMP Mon Jan 21 08:29:51 EST 2008 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 -000000000009f400(usable)
BIOS-e820:000000000009f400-00000000000a0000(reserved)
BIOS-e820:00000000000f0000- 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 -000000003fffd000(usable)
BIOS-e820:000000003fffd000- 0000000040000000 (reserved)
BIOS-e820:00000000fffbc000- 0000000100000000 (reserved)
127MB HIGHMEM available.
895MB LOWMEM available.
found SMP MP-table at000f8990
DMI 2.4 present.
Using APIC driver default
ACPI: PM-Timer IO Port:0xb008
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:11 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 15:11 APIC version 20
Overriding APIC driver with bigsmp
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]:apic_id2, version 17, address0xfec00000, GSI 0-23
ACPI:INT_SRC_OVR(bus 0bus_irq0global_irq2 dfl dfl)
ACPI:INT_SRC_OVR(bus 0bus_irq5global_irq5 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq9global_irq9 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq10global_irq10 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq11global_irq11 high level)
Enabling APIC mode: Physflat. Using 1 I/O APICs
ACPI: HPET id:0x8086a201base:0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bffbc000)
Built 1 zonelists
Kernel command line: ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_IMAGE=k12_1009 console=ttyS0
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Quoted 9 lines
Interesting. Mind to check if you find a the vmlinux binary for that kernel on the cd? Maybe it's hidden inside an rpm. Then you can use:
$ qemu-kvm -s -cdrom ... $ gdb <vmlinux> -ex 'target remote localhost:1234'(gdb) bt
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234' GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... "/home/agi/k12_1009": not in executable format: File format not recognized Remote debugging using localhost:1234 0x0000dfe3 in ?? () (gdb) bt #0 0x0000dfe3 in ?? () (gdb) continue Continuing. ^C Program received signal SIGINT, Interrupt. 0xc015405f in ?? () (gdb) bt #0 0xc015405f in ?? () Cannot access memory at address 0xfed00403 (gdb)
There's no action, no messages after the WP bit part so I had to do ^C. I hope that doesn't taint the debug session.
I tried running qemu-kvm without an -m parameter, the result is not that different:
$ gdb k12_1009 -ex 'target remote localhost:1234' GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... "/home/agi/k12_1009": not in executable format: File format not recognized Remote debugging using localhost:1234 0x00009751 in ?? () (gdb) bt #0 0x00009751 in ?? () #1 0xd4558536 in ?? () (gdb) continue Continuing. ^C Program received signal SIGINT, Interrupt. 0xc015405f in ?? () (gdb) bt #0 0xc015405f in ?? () Cannot access memory at address 0xfed00403 (gdb)
Quoted 2 lines
Also, does the host's dmesg say anything?
Still nothing on dmesg or the logs.
Quoted 2 lines
Alex
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 6 lines · Alec Joseph Rivera
Quoted 2 lines
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234'
What is k12_1009? Are you sure this is vmlinux?
BTW what version on kvm/qemu are you using.
--
Gleb.
Quoted 9 lines · Gleb Natapov
Quoted 6 lines · Alec Joseph Rivera
Quoted 2 lines
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234'What is
k12_1009? Are you sure this is vmlinux?
Hi Gleb:
Yes, k12_1009 is the kernel image that isolinux loads.
-- isolinux.cfg
Quoted 10 lines
DEFAULT 1
TIMEOUT 100
PROMPT 1
DISPLAY isolinux.txt
LABEL 1
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram
LABEL 2
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1
-- file test
Quoted 5 lines
$ file k12_1009 k12_1009: Linux kernel x86 boot executable bzImage, version 2.6.16.54-0.2.5-bigsmp (geeko@b, RO-rootFS, root_dev 0x301, swap_dev 0x1, Normal VGABTW what version on kvm/qemu are you using.
qemu's version is 0.12.5. modinfo kvm doesn't reveal any version string though, however the kernel is 2.6.35 from Arch.
Question: from what I've read so far kvm versions are of 'kvm-xx' where xx is a number, on sourceforge there is kvm-kmod-{kernel-version}, am I correct in assuming and saying then that my kvm version is 2.6.35?
Thanks...
Quoted 2 lines
--
Gleb.
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 28 lines · Alec Joseph Rivera
Quoted 9 lines · Gleb Natapov
Quoted 6 lines · Alec Joseph Rivera
Quoted 2 lines
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234'What is
k12_1009? Are you sure this is vmlinux?Hi Gleb:
Yes,
k12_1009is the kernel image that isolinux loads.-- isolinux.cfg
Quoted 10 lines
DEFAULT 1
TIMEOUT 100
PROMPT 1
DISPLAY isolinux.txt
LABEL 1
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram
LABEL 2
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1
Quoted 4 lines
-- file test
Quoted 2 lines
$ file k12_1009 k12_1009: Linux kernel x86 boot executable bzImage, version 2.6.16.54-0.2.5-bigsmp (geeko@b, RO-rootFS, root_dev 0x301, swap_dev 0x1, Normal VGA
This is bzImage, You need corresponding vmlinux bzImage was created from.
Quoted 10 lines
Quoted 2 lines
BTW what version on kvm/qemu are you using.
qemu's version is 0.12.5. modinfo kvm doesn't reveal any version string though, however the kernel is 2.6.35 from Arch.
Question: from what I've read so far kvm versions are of 'kvm-xx' where xx is a number, on sourceforge there is kvm-kmod-{kernel-version}, am I correct in assuming and saying then that my kvm version is 2.6.35?
kvm-xx is deprecated. So when asked what kvm are you using you should provide your kernel version like you did.
--
Gleb.
Quoted 29 lines · Gleb Natapov
Quoted 28 lines · Alec Joseph Rivera
Quoted 9 lines · Gleb Natapov
Quoted 6 lines · Alec Joseph Rivera
Quoted 2 lines
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234'What is
k12_1009? Are you sure this is vmlinux?Hi Gleb:
Yes,
k12_1009is the kernel image that isolinux loads.-- isolinux.cfg
Quoted 10 lines
DEFAULT 1
TIMEOUT 100
PROMPT 1
DISPLAY isolinux.txt
LABEL 1
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram
LABEL 2
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1
Quoted 6 lines
Quoted 4 lines
-- file test
Quoted 2 lines
$ file k12_1009 k12_1009: Linux kernel x86 boot executable bzImage, version 2.6.16.54-0.2.5-bigsmp (geeko@b, RO-rootFS, root_dev 0x301, swap_dev 0x1, Normal VGAThis is bzImage, You need corresponding vmlinux bzImage was created from.
Oh I see. Thanks for pointing that out. Unfortunately, I don't think I can get that image. Either I ask someone from Novell or IBM.
I'll try crawling the system's filesystem, maybe I can find it there... Will keep you updated.
Quoted 16 lines
Quoted 11 lines
Quoted 3 lines
BTW what version on kvm/qemu are you using.
qemu's version is 0.12.5. modinfo kvm doesn't reveal any version string though, however the kernel is 2.6.35 from Arch.
Question: from what I've read so far kvm versions are of 'kvm-xx' where xx is a number, on sourceforge there is kvm-kmod-{kernel-version}, am I correct in assuming and saying then that my kvm version is 2.6.35?
kvm-xx is deprecated. So when asked what kvm are you using you should provide your kernel version like you did.
--
Gleb.
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 5 lines · Michael Tokarev
Alec Joseph Rivera wrote:
[]Quoted 3 lines
Quoted 3 lines
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.
Quoted 7 lines
Quoted 1 line
-- end
Hm. There was some error with earlier kernels and kvm that resulted in exactly this behavour. Maybe even a (guest) kernel bug.. no? My memory is vague in this area, but it tells there was something...
Hi Michael:
I suspect has something to do with loops (re: bogomips calibration) or timers (re: calibration + pci probing). Will verify this when I get the time to read the source.
Maybe someone more familiar with this kernel area can shed some light on the topic too...? :-) only if I'm not stretching too much..
Quoted 1 line
/mjt
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 14 lines · Alec Joseph Rivera
Quoted 5 lines · Michael Tokarev
Alec Joseph Rivera wrote:
[]Quoted 3 lines
Quoted 3 lines
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.Quoted 7 lines
Quoted 1 line
-- end
Hm. There was some error with earlier kernels and kvm that resulted in exactly this behavour. Maybe even a (guest) kernel bug.. no? My memory is vague in this area, but it tells there was something...
Quoted 8 lines
Hi Michael:
I suspect has something to do with loops (re: bogomips calibration) or timers (re: calibration + pci probing). Will verify this when I get the time to read the source.
Maybe someone more familiar with this kernel area can shed some light on the topic too...? :-) only if I'm not stretching too much..
boot with param lpj=xxx to avoid calibration
copy xxx value from your normal boot kernel messages
Quoted 21 lines
Quoted 2 lines
/mjt
--
---Follow me:
http://twitter.com/agirivera
Invite as a
friend:
http://www.facebook.com/agirivera--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Regards dave
Quoted 21 lines · Dave Young
Quoted 20 lines · Alec Joseph Rivera
Quoted 5 lines · Michael Tokarev
Alec Joseph Rivera wrote:
[]Quoted 3 lines
Quoted 3 lines
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.Quoted 7 lines
Quoted 1 line
-- end
Hm. There was some error with earlier kernels and kvm that resulted in exactly this behavour. Maybe even a (guest) kernel bug.. no? My memory is vague in this area, but it tells there was something...
Hi Michael:
I suspect has something to do with loops (re: bogomips calibration) or timers (re: calibration + pci probing). Will verify this when I get the time to read the source.
Quoted 6 lines
Quoted 2 lines
Maybe someone more familiar with this kernel area can shed some light on the topic too...? :-) only if I'm not stretching too much..
boot with param lpj=xxx to avoid calibration
copy xxx value from your normal boot kernel messages
Hi Dave:
Crossing out calibration, added the lpj parameter (and combinations with -no-hpet and -no-kvm-irqchip) but still hangs after WP bit checking.
Quoted 24 lines
Quoted 21 lines
Quoted 2 lines
/mjt
--
---Follow me:
http://twitter.com/agirivera
Invite as a
friend:
http://www.facebook.com/agirivera--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 34 lines · Alec Joseph Rivera
Quoted 33 lines · Gleb Natapov
Quoted 32 lines · Alec Joseph Rivera
Quoted 9 lines · Gleb Natapov
Quoted 6 lines · Alec Joseph Rivera
Quoted 2 lines
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234'What is
k12_1009? Are you sure this is vmlinux?Hi Gleb:
Yes,
k12_1009is the kernel image that isolinux loads.-- isolinux.cfg
Quoted 10 lines
DEFAULT 1
TIMEOUT 100
PROMPT 1
DISPLAY isolinux.txt
LABEL 1
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram
LABEL 2
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1-- file test
Quoted 2 lines
$ file k12_1009 k12_1009: Linux kernel x86 boot executable bzImage, version 2.6.16.54-0.2.5-bigsmp (geeko@b, RO-rootFS, root_dev 0x301, swap_dev 0x1, Normal VGA
Quoted 9 lines
Quoted 2 lines
This is bzImage, You need corresponding vmlinux bzImage was created from.
Oh I see. Thanks for pointing that out. Unfortunately, I don't think I can get that image. Either I ask someone from Novell or IBM.
I'll try crawling the system's filesystem, maybe I can find it there... Will keep you updated.
No vmlinux/z image found on cd or an installed system :-(
Quoted 18 lines
Quoted 16 lines
Quoted 11 lines
Quoted 3 lines
BTW what version on kvm/qemu are you using.
qemu's version is 0.12.5. modinfo kvm doesn't reveal any version string though, however the kernel is 2.6.35 from Arch.
Question: from what I've read so far kvm versions are of 'kvm-xx' where xx is a number, on sourceforge there is kvm-kmod-{kernel-version}, am I correct in assuming and saying then that my kvm version is 2.6.35?
kvm-xx is deprecated. So when asked what kvm are you using you should provide your kernel version like you did.
--
Gleb.
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 38 lines · Alec Joseph Rivera
Quoted 37 lines · Alec Joseph Rivera
Quoted 35 lines · Gleb Natapov
Quoted 28 lines · Alec Joseph Rivera
Quoted 9 lines · Gleb Natapov
Quoted 6 lines · Alec Joseph Rivera
Quoted 2 lines
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234'What is
k12_1009? Are you sure this is vmlinux?Hi Gleb:
Yes,
k12_1009is the kernel image that isolinux loads.-- isolinux.cfg
Quoted 10 lines
DEFAULT 1
TIMEOUT 100
PROMPT 1
DISPLAY isolinux.txt
LABEL 1
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram
LABEL 2
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1Quoted 4 lines
-- file test
Quoted 2 lines
$ file k12_1009 k12_1009: Linux kernel x86 boot executable bzImage, version 2.6.16.54-0.2.5-bigsmp (geeko@b, RO-rootFS, root_dev 0x301, swap_dev 0x1, Normal VGAThis is bzImage, You need corresponding vmlinux bzImage was created from.
Quoted 10 lines
Quoted 6 lines
Oh I see. Thanks for pointing that out. Unfortunately, I don't think I can get that image. Either I ask someone from Novell or IBM.
I'll try crawling the system's filesystem, maybe I can find it there... Will keep you updated.
No vmlinux/z image found on cd or an installed system :-(
It may be hidden somewhere in debug rpm.
--
Gleb.
Quoted 55 lines · Alec Joseph Rivera
Quoted 53 lines · Alexander Graf
Quoted 50 lines · Alec Joseph Rivera
Quoted 33 lines · Alexander Graf
Quoted 22 lines · Alec Joseph Rivera
Quoted 9 lines · Alexander Graf
Quoted 6 lines · Alec Joseph Rivera
Hi all:
I'm Alec Joseph Rivera, from the Philippines and new on this list. Anyway, I'm trying to run Lotus Foundations on kvm and it just hangs on bootup. It stops right after:
Quoted 11 lines
Quoted 7 lines
Checking if this processor honours the WP bit even in supervisor mode... Ok.
There's no more output after that. My invocation line is:
$ qemu-kvm -cpu host -m 1G -cdrom lfs.isoYour host is probably too new for this old guest. -cpu host directly passes through this host cpu's identifiers on which the guest might choke. Please try again without -cpu.
Quoted 8 lines
Tried without -cpu, still hangs after the WP bit checking...
$ qemu-kvm -m 1G -cdrom lfs.isoI was scanning the changelogs and read something about a -no-kernel-irqchip. The man page doesn't say anything about it but will try this one too..
Quoted 8 lines
Please try:
$ qemu-kvm -m 1G -cdrom lfs.iso -serial stdioThen when it shows the bootloader, add "console=ttyS0" to the kernel command line. That should give all the debugging output necessary.
Already done this one too (I've read it from your conversations with a Peter guy if I'm not mistaken).
It just stops with no panic messages right after the mentioned checking part, which made me dig after timers (bogomips calibration should be next I believe). But I've gotten nowhere so far...
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Also, there's no -no-kernel-irqchip parameter, must have been a typo for -no-kvm-irqchip.
-- begin kernel messages
Quoted 2 lines
Linux version 2.6.16.54-0.2.5-bigsmp (geeko@buildhost) (gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)) #1 SMP Mon Jan 21 08:29:51 EST 2008
Took me quite a while to find that kernel in the graveyard :). It's a SLES10 SP1 kernel from the update repo at one specific point in time (more updates came after that one).
Quoted 71 lines
Quoted 41 lines
Quoted 33 lines
Quoted 33 lines
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 -000000000009f400(usable)
BIOS-e820:000000000009f400-00000000000a0000(reserved)
BIOS-e820:00000000000f0000- 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 -000000003fffd000(usable)
BIOS-e820:000000003fffd000- 0000000040000000 (reserved)
BIOS-e820:00000000fffbc000- 0000000100000000 (reserved)
127MB HIGHMEM available.
895MB LOWMEM available.
found SMP MP-table at000f8990
DMI 2.4 present.
Using APIC driver default
ACPI: PM-Timer IO Port:0xb008
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:11 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 15:11 APIC version 20
Overriding APIC driver with bigsmp
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]:apic_id2, version 17, address0xfec00000, GSI 0-23
ACPI:INT_SRC_OVR(bus 0bus_irq0global_irq2 dfl dfl)
ACPI:INT_SRC_OVR(bus 0bus_irq5global_irq5 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq9global_irq9 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq10global_irq10 high level)
ACPI:INT_SRC_OVR(bus 0bus_irq11global_irq11 high level)
Enabling APIC mode: Physflat. Using 1 I/O APICs
ACPI: HPET id:0x8086a201base:0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bffbc000)
Built 1 zonelists
Kernel command line: ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_IMAGE=k12_1009 console=ttyS0 Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.Quoted 8 lines
Quoted 8 lines
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1022272k/1048564k available (1671k kernel code, 25488k reserved, 890k data, 200k init, 131064k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.Quoted 10 lines
Interesting. Mind to check if you find a the vmlinux binary for that kernel on the cd? Maybe it's hidden inside an rpm. Then you can use:
$ qemu-kvm -s -cdrom ... $ gdb <vmlinux> -ex 'target remote localhost:1234'(gdb) bt
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234' GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... "/home/agi/k12_1009": not in executable format: File format not recognized Remote debugging using localhost:1234 0x0000dfe3 in ?? () (gdb) bt
Quoted 9 lines
#0 0x0000dfe3 in ?? () (gdb) continue Continuing. ^C Program received signal SIGINT, Interrupt. 0xc015405f in ?? () (gdb) bt #0 0xc015405f in ?? ()
0xc015405a <__pte_alloc_kernel+82>: mov (%edi),%eax 0xc015405c <__pte_alloc_kernel+84>: mov 0x4(%edi),%edx 0xc015405f <__pte_alloc_kernel+87>: lock cmpxchg8b (%edi) 0xc0154063 <__pte_alloc_kernel+91>: jne 0xc015405a
<__pte_alloc_kernel+82>
Quoted 20 lines
Cannot access memory at address
0xfed00403
(gdb)There's no action, no messages after the WP bit part so I had to do ^C. I hope that doesn't taint the debug session.
I tried running qemu-kvm without an -m parameter, the result is not that different:
$ gdb k12_1009 -ex 'target remote localhost:1234' GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu".
Quoted 9 lines
For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... "/home/agi/k12_1009": not in executable format: File format not recognized Remote debugging using localhost:1234 0x00009751 in ?? () (gdb) bt #0 0x00009751 in ?? ()
This looks odd. Why would anything be in non-kernel here?
Alex
Quoted 7 lines · Alexander Graf
Quoted 5 lines · Alec Joseph Rivera
Program received signal SIGINT, Interrupt.
0xc015405fin ?? ()
(gdb) bt
#00xc015405fin ?? ()
Quoted 5 lines
0xc015405a <__pte_alloc_kernel+82>: mov (%edi),%eax 0xc015405c <__pte_alloc_kernel+84>: mov 0x4(%edi),%edx 0xc015405f <__pte_alloc_kernel+87>: lock cmpxchg8b (%edi) 0xc0154063 <__pte_alloc_kernel+91>: jne 0xc015405a<__pte_alloc_kernel+82>
This looks like a bug I also have seen recently on 32 bit host-kvm. The instruction emulation for 'lock cmpxchg8b' was broken so that the rip was not advanced and the guest just iterated over this instruction again and again. I thought this was fixed with the latest kvm updates in 2.6.36.
Joerg
Quoted 14 lines · Joerg Roedel
Quoted 7 lines · Alexander Graf
Quoted 5 lines · Alec Joseph Rivera
Program received signal SIGINT, Interrupt.
0xc015405fin ?? ()
(gdb) bt
#00xc015405fin ?? ()Quoted 5 lines
0xc015405a <__pte_alloc_kernel+82>: mov (%edi),%eax 0xc015405c <__pte_alloc_kernel+84>: mov 0x4(%edi),%edx 0xc015405f <__pte_alloc_kernel+87>: lock cmpxchg8b (%edi) 0xc0154063 <__pte_alloc_kernel+91>: jne 0xc015405a<__pte_alloc_kernel+82>
Quoted 6 lines
This looks like a bug I also have seen recently on 32 bit host-kvm. The instruction emulation for 'lock cmpxchg8b' was broken so that the rip was not advanced and the guest just iterated over this instruction again and again. I thought this was fixed with the latest kvm updates in 2.6.36.
Will wait for a 2.6.36 kernel then or compile a .36-rc myself on free time :-)
Thanks, will update the list when either comes.
Quoted 2 lines
Joerg
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 42 lines · Gleb Natapov
Quoted 41 lines · Alec Joseph Rivera
Quoted 40 lines · Alec Joseph Rivera
Quoted 29 lines · Gleb Natapov
Quoted 28 lines · Alec Joseph Rivera
Quoted 9 lines · Gleb Natapov
Quoted 6 lines · Alec Joseph Rivera
Quoted 2 lines
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234'What is
k12_1009? Are you sure this is vmlinux?Hi Gleb:
Yes,
k12_1009is the kernel image that isolinux loads.-- isolinux.cfg
Quoted 10 lines
DEFAULT 1
TIMEOUT 100
PROMPT 1
DISPLAY isolinux.txt
LABEL 1
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram
LABEL 2
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1Quoted 6 lines
Quoted 4 lines
-- file test
Quoted 2 lines
$ file k12_1009 k12_1009: Linux kernel x86 boot executable bzImage, version 2.6.16.54-0.2.5-bigsmp (geeko@b, RO-rootFS, root_dev 0x301, swap_dev 0x1, Normal VGAThis is bzImage, You need corresponding vmlinux bzImage was created from.
Oh I see. Thanks for pointing that out. Unfortunately, I don't think I can get that image. Either I ask someone from Novell or IBM.
Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
I'll try crawling the system's filesystem, maybe I can find it there... Will keep you updated.
No vmlinux/z image found on cd or an installed system :-(
It may be hidden somewhere in debug rpm.
Sadly, Lotus Foundations doesn't supply the debug rpms :-(
Quoted 2 lines
--
Gleb.
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 47 lines · Alec Joseph Rivera
Quoted 46 lines · Gleb Natapov
Quoted 45 lines · Alec Joseph Rivera
Quoted 43 lines · Alec Joseph Rivera
Quoted 29 lines · Gleb Natapov
Quoted 28 lines · Alec Joseph Rivera
Quoted 9 lines · Gleb Natapov
Quoted 6 lines · Alec Joseph Rivera
Quoted 2 lines
That should give us a clue on what's going wrong.
I did the steps you mentioned. Here's the gdb transcript:
$ gdb k12_1009 -ex 'target remote localhost:1234'What is
k12_1009? Are you sure this is vmlinux?Hi Gleb:
Yes,
k12_1009is the kernel image that isolinux loads.-- isolinux.cfg
Quoted 10 lines
DEFAULT 1
TIMEOUT 100
PROMPT 1
DISPLAY isolinux.txt
LABEL 1
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram
LABEL 2
KERNELk12_1009
APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1Quoted 6 lines
Quoted 4 lines
-- file test
Quoted 2 lines
$ file k12_1009 k12_1009: Linux kernel x86 boot executable bzImage, version 2.6.16.54-0.2.5-bigsmp (geeko@b, RO-rootFS, root_dev 0x301, swap_dev 0x1, Normal VGAThis is bzImage, You need corresponding vmlinux bzImage was created from.
Oh I see. Thanks for pointing that out. Unfortunately, I don't think I can get that image. Either I ask someone from Novell or IBM.
I'll try crawling the system's filesystem, maybe I can find it there... Will keep you updated.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
No vmlinux/z image found on cd or an installed system :-(
It may be hidden somewhere in debug rpm.
Sadly, Lotus Foundations doesn't supply the debug rpms :-(
Looks like Alexander already found relevant rpm.
--
Gleb.
Quoted 6 lines · Alec Joseph Rivera
On Thu, 2010-09-16 at 13:02 +0200, Joerg Roedel wrote:
Will wait for a 2.6.36 kernel then or compile a .36-rc myself on free time :-)
Thanks, will update the list when either comes.
Just checked, 2.6.36-rc4 contains the fix for the cmpxchg8b problem on 32 bit hosts.
Joerg
16.09.2010 15:32, Joerg Roedel пишет:
Quoted 10 lines · Alec Joseph Rivera
Quoted 6 lines · Joerg Roedel
Will wait for a 2.6.36 kernel then or compile a .36-rc myself on free time :-)
Thanks, will update the list when either comes.
Just checked, 2.6.36-rc4 contains the fix for the cmpxchg8b problem on 32 bit hosts.
What commit it is?
I swear I saw it in 2.6.32-stable somewhere. Is it this one (2.6.32.12):
From: Gleb Natapov <[email protected]>
Date: Fri, 19 Mar 2010 15:47:31 +0100
Subject: KVM: x86 emulator: fix memory access during x86 emulation
To: [email protected]
Cc: Marcelo Tosatti <[email protected]>, Avi Kivity <[email protected]>, Gleb Natapov <[email protected]>
Message-ID: <[email protected]>
From: Gleb Natapov <[email protected]>
commit 1871c6020d7308afb99127bba51f04548e7ca84e upstream
Currently when x86 emulator needs to access memory, page walk is done with broadest permission possible, so if emulated instruction was executed by userspace process it can still access kernel memory. Fix that by providing correct memory access to page walker during emulation.
/mjt
Quoted 11 lines · Joerg Roedel
Quoted 6 lines · Alec Joseph Rivera
On Thu, 2010-09-16 at 13:02 +0200, Joerg Roedel wrote:
Will wait for a 2.6.36 kernel then or compile a .36-rc myself on free time :-)
Thanks, will update the list when either comes.
Just checked, 2.6.36-rc4 contains the fix for the cmpxchg8b problem on 32 bit hosts.
Nice :-) woot woot... Will definite compile a test kernel asap.
Quoted 2 lines
Joerg
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera
Quoted 7 lines · Michael Tokarev
16.09.2010 15:32, Joerg Roedel пишет:
Quoted 6 lines · Alec Joseph Rivera
Quoted 5 lines · Joerg Roedel
Will wait for a 2.6.36 kernel then or compile a .36-rc myself on free time :-)
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
Thanks, will update the list when either comes.
Just checked, 2.6.36-rc4 contains the fix for the cmpxchg8b problem on 32 bit hosts.
What commit it is?
I swear I saw it in 2.6.32-stable somewhere. Is it this one (2.6.32.12):
it is 16518d5ada690643453eb0aef3cc7841d3623c2d, but the bug shouldn't be present in 2.6.32.
--
Gleb.
Quoted 7 lines · Alec Joseph Rivera
Quoted 6 lines · Joerg Roedel
Quoted 5 lines · Alec Joseph Rivera
On Thu, 2010-09-16 at 13:02 +0200, Joerg Roedel wrote:
Will wait for a 2.6.36 kernel then or compile a .36-rc myself on free time :-)
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Thanks, will update the list when either comes.
Just checked, 2.6.36-rc4 contains the fix for the cmpxchg8b problem on 32 bit hosts.
Nice :-) woot woot... Will definite compile a test kernel asap.
So your host is 32bit?
--
Gleb.
Quoted 7 lines · Michael Tokarev
16.09.2010 15:32, Joerg Roedel пишет:
Quoted 6 lines · Alec Joseph Rivera
Quoted 5 lines · Joerg Roedel
Will wait for a 2.6.36 kernel then or compile a .36-rc myself on free time :-)
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Thanks, will update the list when either comes.
Just checked, 2.6.36-rc4 contains the fix for the cmpxchg8b problem on 32 bit hosts.
What commit it is?
I swear I saw it in 2.6.32-stable somewhere. Is it this one (2.6.32.12):
It is 16518d5ada690643453eb0aef3cc7841d3623c2d in latest linus/master branch. It was merged between -rc3 and -rc4.
Joerg
Quoted 10 lines · Gleb Natapov
Quoted 9 lines · Alec Joseph Rivera
Quoted 8 lines · Joerg Roedel
Quoted 6 lines · Alec Joseph Rivera
On Thu, 2010-09-16 at 13:02 +0200, Joerg Roedel wrote:
Will wait for a 2.6.36 kernel then or compile a .36-rc myself on free time :-)
Thanks, will update the list when either comes.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Just checked, 2.6.36-rc4 contains the fix for the cmpxchg8b problem on 32 bit hosts.
Nice :-) woot woot... Will definite compile a test kernel asap.
So your host is 32bit?
Yes. It's Arch-based. I initially thought of installing a 64-bit kernel when I saw the guest host status on kvm's home, but programs are compiled 32-bit. I was put off thinking about binary compatibility.
Haven't tested such since my Debian days...
Quoted 2 lines
--
Gleb.
Signature · 8 lines
--- Follow me: http://twitter.com/agirivera Invite as a friend: http://www.facebook.com/agirivera