All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.16 Guest Hangs on Boot
@ 2010-09-15 16:53 Alec Joseph Rivera
  2010-09-15 17:28 ` Alexander Graf
  0 siblings, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-15 16:53 UTC (permalink / raw)
  To: kvm; +Cc: Meric Mara, Renan Mara

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


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 16:53 2.6.16 Guest Hangs on Boot Alec Joseph Rivera
@ 2010-09-15 17:28 ` Alexander Graf
  2010-09-15 17:48   ` Alec Joseph Rivera
  0 siblings, 1 reply; 30+ messages in thread
From: Alexander Graf @ 2010-09-15 17:28 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: kvm, Meric Mara, Renan Mara


On 15.09.2010, at 18:53, Alec Joseph Rivera wrote:

> 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

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


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 17:28 ` Alexander Graf
@ 2010-09-15 17:48   ` Alec Joseph Rivera
  2010-09-15 17:51     ` Alexander Graf
  0 siblings, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-15 17:48 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm, Meric Mara, Renan Mara

On Wed, 2010-09-15 at 19:28 +0200, Alexander Graf wrote:
> On 15.09.2010, at 18:53, Alec Joseph Rivera wrote:
> 
> > 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
> 
> 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.
> 
> 

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..


> Alex
> 


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 17:48   ` Alec Joseph Rivera
@ 2010-09-15 17:51     ` Alexander Graf
  2010-09-15 18:07       ` Alec Joseph Rivera
  0 siblings, 1 reply; 30+ messages in thread
From: Alexander Graf @ 2010-09-15 17:51 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: kvm, Meric Mara, Renan Mara


On 15.09.2010, at 19:48, Alec Joseph Rivera wrote:

> On Wed, 2010-09-15 at 19:28 +0200, Alexander Graf wrote:
>> On 15.09.2010, at 18:53, Alec Joseph Rivera wrote:
>> 
>>> 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
>> 
>> 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.
>> 
>> 
> 
> 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..

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


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 17:51     ` Alexander Graf
@ 2010-09-15 18:07       ` Alec Joseph Rivera
  2010-09-15 18:15         ` Alexander Graf
  2010-09-15 18:37         ` Michael Tokarev
  0 siblings, 2 replies; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-15 18:07 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm, Meric Mara, Renan Mara

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

On Wed, 2010-09-15 at 19:51 +0200, Alexander Graf wrote:
> On 15.09.2010, at 19:48, Alec Joseph Rivera wrote:
> 
> > On Wed, 2010-09-15 at 19:28 +0200, Alexander Graf wrote:
> >> On 15.09.2010, at 18:53, Alec Joseph Rivera wrote:
> >> 
> >>> 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
> >> 
> >> 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.
> >> 
> >> 
> > 
> > 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..
> 
> 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.
> 
> 

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
> 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.
-- end

> Alex
> 


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera



[-- Attachment #2: console --]
[-- Type: text/plain, Size: 2160 bytes --]

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.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 18:07       ` Alec Joseph Rivera
@ 2010-09-15 18:15         ` Alexander Graf
  2010-09-15 18:26           ` Alec Joseph Rivera
  2010-09-16  1:55           ` Alec Joseph Rivera
  2010-09-15 18:37         ` Michael Tokarev
  1 sibling, 2 replies; 30+ messages in thread
From: Alexander Graf @ 2010-09-15 18:15 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: kvm, Meric Mara, Renan Mara


On 15.09.2010, at 20:07, Alec Joseph Rivera wrote:

> On Wed, 2010-09-15 at 19:51 +0200, Alexander Graf wrote:
>> On 15.09.2010, at 19:48, Alec Joseph Rivera wrote:
>> 
>>> On Wed, 2010-09-15 at 19:28 +0200, Alexander Graf wrote:
>>>> On 15.09.2010, at 18:53, Alec Joseph Rivera wrote:
>>>> 
>>>>> 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
>>>> 
>>>> 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.
>>>> 
>>>> 
>>> 
>>> 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..
>> 
>> 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.
>> 
>> 
> 
> 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
>> 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.

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


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 18:15         ` Alexander Graf
@ 2010-09-15 18:26           ` Alec Joseph Rivera
  2010-09-16  1:55           ` Alec Joseph Rivera
  1 sibling, 0 replies; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-15 18:26 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm, Meric Mara, Renan Mara

On Wed, 2010-09-15 at 20:15 +0200, Alexander Graf wrote:
> On 15.09.2010, at 20:07, Alec Joseph Rivera wrote:
> 
> > On Wed, 2010-09-15 at 19:51 +0200, Alexander Graf wrote:
> >> On 15.09.2010, at 19:48, Alec Joseph Rivera wrote:
> >> 
> >>> On Wed, 2010-09-15 at 19:28 +0200, Alexander Graf wrote:
> >>>> On 15.09.2010, at 18:53, Alec Joseph Rivera wrote:
> >>>> 
> >>>>> 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
> >>>> 
> >>>> 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.
> >>>> 
> >>>> 
> >>> 
> >>> 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..
> >> 
> >> 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.
> >> 
> >> 
> > 
> > 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
> >> 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.
> 
> 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.

> 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.


> Alex
> 


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 18:07       ` Alec Joseph Rivera
  2010-09-15 18:15         ` Alexander Graf
@ 2010-09-15 18:37         ` Michael Tokarev
  2010-09-16  8:17           ` Alec Joseph Rivera
  1 sibling, 1 reply; 30+ messages in thread
From: Michael Tokarev @ 2010-09-15 18:37 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

Alec Joseph Rivera wrote:
[]
>> 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

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 18:15         ` Alexander Graf
  2010-09-15 18:26           ` Alec Joseph Rivera
@ 2010-09-16  1:55           ` Alec Joseph Rivera
  2010-09-16  6:39             ` Gleb Natapov
  2010-09-16 10:27             ` Alexander Graf
  1 sibling, 2 replies; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16  1:55 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm, Meric Mara, Renan Mara

On Wed, 2010-09-15 at 20:15 +0200, Alexander Graf wrote:
> On 15.09.2010, at 20:07, Alec Joseph Rivera wrote:
> 
> > On Wed, 2010-09-15 at 19:51 +0200, Alexander Graf wrote:
> >> On 15.09.2010, at 19:48, Alec Joseph Rivera wrote:
> >> 
> >>> On Wed, 2010-09-15 at 19:28 +0200, Alexander Graf wrote:
> >>>> On 15.09.2010, at 18:53, Alec Joseph Rivera wrote:
> >>>> 
> >>>>> 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
> >>>> 
> >>>> 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.
> >>>> 
> >>>> 
> >>> 
> >>> 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..
> >> 
> >> 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.
> >> 
> >> 
> > 
> > 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
> >> 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.
> 
> 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) 

> Also, does the host's dmesg say anything?
> 

Still nothing on dmesg or the logs.

> Alex
> 


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16  1:55           ` Alec Joseph Rivera
@ 2010-09-16  6:39             ` Gleb Natapov
  2010-09-16  7:52               ` Alec Joseph Rivera
  2010-09-16 10:27             ` Alexander Graf
  1 sibling, 1 reply; 30+ messages in thread
From: Gleb Natapov @ 2010-09-16  6:39 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 09:55:38AM +0800, Alec Joseph Rivera wrote:
> > 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.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16  6:39             ` Gleb Natapov
@ 2010-09-16  7:52               ` Alec Joseph Rivera
  2010-09-16  7:56                 ` Gleb Natapov
  0 siblings, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16  7:52 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, 2010-09-16 at 08:39 +0200, Gleb Natapov wrote:
> On Thu, Sep 16, 2010 at 09:55:38AM +0800, Alec Joseph Rivera wrote:
> > > 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

> DEFAULT 1
> TIMEOUT 100
> PROMPT 1
> DISPLAY isolinux.txt
> LABEL 1
>         KERNEL k12_1009
>         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram 
> LABEL 2
>         KERNEL k12_1009
>         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1 

-- file test
> $ 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

> 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?

Thanks...

> --
> 			Gleb.


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16  7:52               ` Alec Joseph Rivera
@ 2010-09-16  7:56                 ` Gleb Natapov
  2010-09-16  8:03                   ` Alec Joseph Rivera
  0 siblings, 1 reply; 30+ messages in thread
From: Gleb Natapov @ 2010-09-16  7:56 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 03:52:17PM +0800, Alec Joseph Rivera wrote:
> On Thu, 2010-09-16 at 08:39 +0200, Gleb Natapov wrote:
> > On Thu, Sep 16, 2010 at 09:55:38AM +0800, Alec Joseph Rivera wrote:
> > > > 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
> 
> > DEFAULT 1
> > TIMEOUT 100
> > PROMPT 1
> > DISPLAY isolinux.txt
> > LABEL 1
> >         KERNEL k12_1009
> >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram 
> > LABEL 2
> >         KERNEL k12_1009
> >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1 
> 
> -- file test
> > $ 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.

> > 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.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16  7:56                 ` Gleb Natapov
@ 2010-09-16  8:03                   ` Alec Joseph Rivera
  2010-09-16 10:11                     ` Alec Joseph Rivera
  0 siblings, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16  8:03 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, 2010-09-16 at 09:56 +0200, Gleb Natapov wrote:
> On Thu, Sep 16, 2010 at 03:52:17PM +0800, Alec Joseph Rivera wrote:
> > On Thu, 2010-09-16 at 08:39 +0200, Gleb Natapov wrote:
> > > On Thu, Sep 16, 2010 at 09:55:38AM +0800, Alec Joseph Rivera wrote:
> > > > > 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
> > 
> > > DEFAULT 1
> > > TIMEOUT 100
> > > PROMPT 1
> > > DISPLAY isolinux.txt
> > > LABEL 1
> > >         KERNEL k12_1009
> > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram 
> > > LABEL 2
> > >         KERNEL k12_1009
> > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1 
> > 
> > -- file test
> > > $ 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.

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.

> 
> > > 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.


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-15 18:37         ` Michael Tokarev
@ 2010-09-16  8:17           ` Alec Joseph Rivera
  2010-09-16  8:32             ` Dave Young
  0 siblings, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16  8:17 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Wed, 2010-09-15 at 22:37 +0400, Michael Tokarev wrote:
> Alec Joseph Rivera wrote:
> []
> >> 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...
> 

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..

> /mjt


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16  8:17           ` Alec Joseph Rivera
@ 2010-09-16  8:32             ` Dave Young
  2010-09-16  9:56               ` Alec Joseph Rivera
  0 siblings, 1 reply; 30+ messages in thread
From: Dave Young @ 2010-09-16  8:32 UTC (permalink / raw)
  To: Alec Joseph Rivera
  Cc: Michael Tokarev, Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 4:17 PM, Alec Joseph Rivera <eijhei@gmail.com> wrote:
> On Wed, 2010-09-15 at 22:37 +0400, Michael Tokarev wrote:
>> Alec Joseph Rivera wrote:
>> []
>> >> 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...
>>
>
> 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
>
>> /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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Regards
dave

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16  8:32             ` Dave Young
@ 2010-09-16  9:56               ` Alec Joseph Rivera
  0 siblings, 0 replies; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16  9:56 UTC (permalink / raw)
  To: Dave Young; +Cc: Michael Tokarev, Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, 2010-09-16 at 16:32 +0800, Dave Young wrote:
> On Thu, Sep 16, 2010 at 4:17 PM, Alec Joseph Rivera <eijhei@gmail.com> wrote:
> > On Wed, 2010-09-15 at 22:37 +0400, Michael Tokarev wrote:
> >> Alec Joseph Rivera wrote:
> >> []
> >> >> 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...
> >>
> >
> > 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

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.

> >
> >> /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 majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> 
> 
> 


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16  8:03                   ` Alec Joseph Rivera
@ 2010-09-16 10:11                     ` Alec Joseph Rivera
  2010-09-16 10:14                       ` Gleb Natapov
  0 siblings, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16 10:11 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, 2010-09-16 at 16:03 +0800, Alec Joseph Rivera wrote:
> On Thu, 2010-09-16 at 09:56 +0200, Gleb Natapov wrote:
> > On Thu, Sep 16, 2010 at 03:52:17PM +0800, Alec Joseph Rivera wrote:
> > > On Thu, 2010-09-16 at 08:39 +0200, Gleb Natapov wrote:
> > > > On Thu, Sep 16, 2010 at 09:55:38AM +0800, Alec Joseph Rivera wrote:
> > > > > > 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
> > > 
> > > > DEFAULT 1
> > > > TIMEOUT 100
> > > > PROMPT 1
> > > > DISPLAY isolinux.txt
> > > > LABEL 1
> > > >         KERNEL k12_1009
> > > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram 
> > > > LABEL 2
> > > >         KERNEL k12_1009
> > > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1 
> > > 
> > > -- file test
> > > > $ 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.
> 
> 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 :-(


> > 
> > > > 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.
> 
> 


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 10:11                     ` Alec Joseph Rivera
@ 2010-09-16 10:14                       ` Gleb Natapov
  2010-09-16 11:13                         ` Alec Joseph Rivera
  0 siblings, 1 reply; 30+ messages in thread
From: Gleb Natapov @ 2010-09-16 10:14 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 06:11:36PM +0800, Alec Joseph Rivera wrote:
> On Thu, 2010-09-16 at 16:03 +0800, Alec Joseph Rivera wrote:
> > On Thu, 2010-09-16 at 09:56 +0200, Gleb Natapov wrote:
> > > On Thu, Sep 16, 2010 at 03:52:17PM +0800, Alec Joseph Rivera wrote:
> > > > On Thu, 2010-09-16 at 08:39 +0200, Gleb Natapov wrote:
> > > > > On Thu, Sep 16, 2010 at 09:55:38AM +0800, Alec Joseph Rivera wrote:
> > > > > > > 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
> > > > 
> > > > > DEFAULT 1
> > > > > TIMEOUT 100
> > > > > PROMPT 1
> > > > > DISPLAY isolinux.txt
> > > > > LABEL 1
> > > > >         KERNEL k12_1009
> > > > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram 
> > > > > LABEL 2
> > > > >         KERNEL k12_1009
> > > > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1 
> > > > 
> > > > -- file test
> > > > > $ 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.
> > 
> > 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.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16  1:55           ` Alec Joseph Rivera
  2010-09-16  6:39             ` Gleb Natapov
@ 2010-09-16 10:27             ` Alexander Graf
  2010-09-16 11:02               ` Joerg Roedel
  1 sibling, 1 reply; 30+ messages in thread
From: Alexander Graf @ 2010-09-16 10:27 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: kvm, Meric Mara, Renan Mara

Alec Joseph Rivera wrote:
> On Wed, 2010-09-15 at 20:15 +0200, Alexander Graf wrote:
>   
>> On 15.09.2010, at 20:07, Alec Joseph Rivera wrote:
>>
>>     
>>> On Wed, 2010-09-15 at 19:51 +0200, Alexander Graf wrote:
>>>       
>>>> On 15.09.2010, at 19:48, Alec Joseph Rivera wrote:
>>>>
>>>>         
>>>>> On Wed, 2010-09-15 at 19:28 +0200, Alexander Graf wrote:
>>>>>           
>>>>>> On 15.09.2010, at 18:53, Alec Joseph Rivera wrote:
>>>>>>
>>>>>>             
>>>>>>> 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
>>>>>>>               
>>>>>> 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.
>>>>>>
>>>>>>
>>>>>>             
>>>>> 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..
>>>>>           
>>>> 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.
>>>>
>>>>
>>>>         
>>> 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
>>>       
>>>> 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).

>>>> 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.
>>>>         
>> 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 ?? ()
>   

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>


> 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 ?? ()
>   

This looks odd. Why would anything be in non-kernel here?


Alex


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 10:27             ` Alexander Graf
@ 2010-09-16 11:02               ` Joerg Roedel
  2010-09-16 11:11                 ` Alec Joseph Rivera
  0 siblings, 1 reply; 30+ messages in thread
From: Joerg Roedel @ 2010-09-16 11:02 UTC (permalink / raw)
  To: Alexander Graf; +Cc: Alec Joseph Rivera, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 12:27:29PM +0200, Alexander Graf wrote:
> Alec Joseph Rivera wrote:
> > 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>

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


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:02               ` Joerg Roedel
@ 2010-09-16 11:11                 ` Alec Joseph Rivera
  2010-09-16 11:32                   ` Joerg Roedel
  0 siblings, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16 11:11 UTC (permalink / raw)
  To: Joerg Roedel; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, 2010-09-16 at 13:02 +0200, Joerg Roedel wrote:
> On Thu, Sep 16, 2010 at 12:27:29PM +0200, Alexander Graf wrote:
> > Alec Joseph Rivera wrote:
> > > 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>
> 
> 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.

> 	Joerg
> 


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 10:14                       ` Gleb Natapov
@ 2010-09-16 11:13                         ` Alec Joseph Rivera
  2010-09-16 11:18                           ` Gleb Natapov
  0 siblings, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16 11:13 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, 2010-09-16 at 12:14 +0200, Gleb Natapov wrote:
> On Thu, Sep 16, 2010 at 06:11:36PM +0800, Alec Joseph Rivera wrote:
> > On Thu, 2010-09-16 at 16:03 +0800, Alec Joseph Rivera wrote:
> > > On Thu, 2010-09-16 at 09:56 +0200, Gleb Natapov wrote:
> > > > On Thu, Sep 16, 2010 at 03:52:17PM +0800, Alec Joseph Rivera wrote:
> > > > > On Thu, 2010-09-16 at 08:39 +0200, Gleb Natapov wrote:
> > > > > > On Thu, Sep 16, 2010 at 09:55:38AM +0800, Alec Joseph Rivera wrote:
> > > > > > > > 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
> > > > > 
> > > > > > DEFAULT 1
> > > > > > TIMEOUT 100
> > > > > > PROMPT 1
> > > > > > DISPLAY isolinux.txt
> > > > > > LABEL 1
> > > > > >         KERNEL k12_1009
> > > > > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram 
> > > > > > LABEL 2
> > > > > >         KERNEL k12_1009
> > > > > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1 
> > > > > 
> > > > > -- file test
> > > > > > $ 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.
> > > 
> > > 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.
> 

Sadly, Lotus Foundations doesn't supply the debug rpms :-(

> --
> 			Gleb.


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:13                         ` Alec Joseph Rivera
@ 2010-09-16 11:18                           ` Gleb Natapov
  0 siblings, 0 replies; 30+ messages in thread
From: Gleb Natapov @ 2010-09-16 11:18 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 07:13:03PM +0800, Alec Joseph Rivera wrote:
> On Thu, 2010-09-16 at 12:14 +0200, Gleb Natapov wrote:
> > On Thu, Sep 16, 2010 at 06:11:36PM +0800, Alec Joseph Rivera wrote:
> > > On Thu, 2010-09-16 at 16:03 +0800, Alec Joseph Rivera wrote:
> > > > On Thu, 2010-09-16 at 09:56 +0200, Gleb Natapov wrote:
> > > > > On Thu, Sep 16, 2010 at 03:52:17PM +0800, Alec Joseph Rivera wrote:
> > > > > > On Thu, 2010-09-16 at 08:39 +0200, Gleb Natapov wrote:
> > > > > > > On Thu, Sep 16, 2010 at 09:55:38AM +0800, Alec Joseph Rivera wrote:
> > > > > > > > > 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
> > > > > > 
> > > > > > > DEFAULT 1
> > > > > > > TIMEOUT 100
> > > > > > > PROMPT 1
> > > > > > > DISPLAY isolinux.txt
> > > > > > > LABEL 1
> > > > > > >         KERNEL k12_1009
> > > > > > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram 
> > > > > > > LABEL 2
> > > > > > >         KERNEL k12_1009
> > > > > > >         APPEND ramdisk_size=32768 initrd=initrd root=/dev/ram BOOT_SUPPORT=1 
> > > > > > 
> > > > > > -- file test
> > > > > > > $ 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.
> > > > 
> > > > 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.
> > 
> 
> Sadly, Lotus Foundations doesn't supply the debug rpms :-(
> 
Looks like Alexander already found relevant rpm.

--
			Gleb.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:11                 ` Alec Joseph Rivera
@ 2010-09-16 11:32                   ` Joerg Roedel
  2010-09-16 11:35                     ` Michael Tokarev
  2010-09-16 11:37                     ` Alec Joseph Rivera
  0 siblings, 2 replies; 30+ messages in thread
From: Joerg Roedel @ 2010-09-16 11:32 UTC (permalink / raw)
  To: Alec Joseph Rivera; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 07:11:17PM +0800, Alec Joseph Rivera wrote:
> 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


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:32                   ` Joerg Roedel
@ 2010-09-16 11:35                     ` Michael Tokarev
  2010-09-16 11:41                       ` Gleb Natapov
  2010-09-16 11:43                       ` Joerg Roedel
  2010-09-16 11:37                     ` Alec Joseph Rivera
  1 sibling, 2 replies; 30+ messages in thread
From: Michael Tokarev @ 2010-09-16 11:35 UTC (permalink / raw)
  To: Joerg Roedel
  Cc: Alec Joseph Rivera, Alexander Graf, kvm, Meric Mara, Renan Mara

16.09.2010 15:32, Joerg Roedel пишет:
> On Thu, Sep 16, 2010 at 07:11:17PM +0800, Alec Joseph Rivera wrote:
>> 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.

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 <gleb@redhat.com>
Date: Fri, 19 Mar 2010 15:47:31 +0100
Subject: KVM: x86 emulator: fix memory access during x86 emulation
To: stable@kernel.org
Cc: Marcelo Tosatti <mtosatti@redhat.com>, Avi Kivity <avi@redhat.com>, Gleb Natapov <gleb@redhat.com>
Message-ID: <1269010059-25309-4-git-send-email-stefan.bader@canonical.com>


From: Gleb Natapov <gleb@redhat.com>

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

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:32                   ` Joerg Roedel
  2010-09-16 11:35                     ` Michael Tokarev
@ 2010-09-16 11:37                     ` Alec Joseph Rivera
  2010-09-16 11:41                       ` Gleb Natapov
  1 sibling, 1 reply; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16 11:37 UTC (permalink / raw)
  To: Joerg Roedel; +Cc: Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, 2010-09-16 at 13:32 +0200, Joerg Roedel wrote:
> On Thu, Sep 16, 2010 at 07:11:17PM +0800, Alec Joseph Rivera wrote:
> > 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.

> 	Joerg
> 


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:35                     ` Michael Tokarev
@ 2010-09-16 11:41                       ` Gleb Natapov
  2010-09-16 11:43                       ` Joerg Roedel
  1 sibling, 0 replies; 30+ messages in thread
From: Gleb Natapov @ 2010-09-16 11:41 UTC (permalink / raw)
  To: Michael Tokarev
  Cc: Joerg Roedel, Alec Joseph Rivera, Alexander Graf, kvm,
	Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 03:35:17PM +0400, Michael Tokarev wrote:
> 16.09.2010 15:32, Joerg Roedel пишет:
> > On Thu, Sep 16, 2010 at 07:11:17PM +0800, Alec Joseph Rivera wrote:
> >> 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.
> 
> 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.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:37                     ` Alec Joseph Rivera
@ 2010-09-16 11:41                       ` Gleb Natapov
  2010-09-16 11:51                         ` Alec Joseph Rivera
  0 siblings, 1 reply; 30+ messages in thread
From: Gleb Natapov @ 2010-09-16 11:41 UTC (permalink / raw)
  To: Alec Joseph Rivera
  Cc: Joerg Roedel, Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 07:37:55PM +0800, Alec Joseph Rivera wrote:
> On Thu, 2010-09-16 at 13:32 +0200, Joerg Roedel wrote:
> > On Thu, Sep 16, 2010 at 07:11:17PM +0800, Alec Joseph Rivera wrote:
> > > 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.
> 
So your host is 32bit?

--
			Gleb.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:35                     ` Michael Tokarev
  2010-09-16 11:41                       ` Gleb Natapov
@ 2010-09-16 11:43                       ` Joerg Roedel
  1 sibling, 0 replies; 30+ messages in thread
From: Joerg Roedel @ 2010-09-16 11:43 UTC (permalink / raw)
  To: Michael Tokarev
  Cc: Alec Joseph Rivera, Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, Sep 16, 2010 at 03:35:17PM +0400, Michael Tokarev wrote:
> 16.09.2010 15:32, Joerg Roedel пишет:
> > On Thu, Sep 16, 2010 at 07:11:17PM +0800, Alec Joseph Rivera wrote:
> >> 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.
> 
> 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


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 2.6.16 Guest Hangs on Boot
  2010-09-16 11:41                       ` Gleb Natapov
@ 2010-09-16 11:51                         ` Alec Joseph Rivera
  0 siblings, 0 replies; 30+ messages in thread
From: Alec Joseph Rivera @ 2010-09-16 11:51 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: Joerg Roedel, Alexander Graf, kvm, Meric Mara, Renan Mara

On Thu, 2010-09-16 at 13:41 +0200, Gleb Natapov wrote:
> On Thu, Sep 16, 2010 at 07:37:55PM +0800, Alec Joseph Rivera wrote:
> > On Thu, 2010-09-16 at 13:32 +0200, Joerg Roedel wrote:
> > > On Thu, Sep 16, 2010 at 07:11:17PM +0800, Alec Joseph Rivera wrote:
> > > > 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.
> > 
> 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...

> --
> 			Gleb.


-- 
--- 


Follow me: 
http://twitter.com/agirivera
Invite as a
friend: 
http://www.facebook.com/agirivera




^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2010-09-16 11:51 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-15 16:53 2.6.16 Guest Hangs on Boot Alec Joseph Rivera
2010-09-15 17:28 ` Alexander Graf
2010-09-15 17:48   ` Alec Joseph Rivera
2010-09-15 17:51     ` Alexander Graf
2010-09-15 18:07       ` Alec Joseph Rivera
2010-09-15 18:15         ` Alexander Graf
2010-09-15 18:26           ` Alec Joseph Rivera
2010-09-16  1:55           ` Alec Joseph Rivera
2010-09-16  6:39             ` Gleb Natapov
2010-09-16  7:52               ` Alec Joseph Rivera
2010-09-16  7:56                 ` Gleb Natapov
2010-09-16  8:03                   ` Alec Joseph Rivera
2010-09-16 10:11                     ` Alec Joseph Rivera
2010-09-16 10:14                       ` Gleb Natapov
2010-09-16 11:13                         ` Alec Joseph Rivera
2010-09-16 11:18                           ` Gleb Natapov
2010-09-16 10:27             ` Alexander Graf
2010-09-16 11:02               ` Joerg Roedel
2010-09-16 11:11                 ` Alec Joseph Rivera
2010-09-16 11:32                   ` Joerg Roedel
2010-09-16 11:35                     ` Michael Tokarev
2010-09-16 11:41                       ` Gleb Natapov
2010-09-16 11:43                       ` Joerg Roedel
2010-09-16 11:37                     ` Alec Joseph Rivera
2010-09-16 11:41                       ` Gleb Natapov
2010-09-16 11:51                         ` Alec Joseph Rivera
2010-09-15 18:37         ` Michael Tokarev
2010-09-16  8:17           ` Alec Joseph Rivera
2010-09-16  8:32             ` Dave Young
2010-09-16  9:56               ` Alec Joseph Rivera

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.