-smp >=2 + -no-kvm-irqchip broken
Hi,
notice while testing v2 of my vcpu state series: Starting SMP guests like Linux or Vista without in-kernel irqchip and with more than one CPU make them lock up during boot (Vista) or spit out messages like
udevd[112] trap invalid opcode ip:7fc434630950 sp:7fff3cd3fcb8 error:0 in libc-2.9.so[7fc4345b2000+14f000]
Affected are all recent versions (stable-0.11 didn't even start the bios, probably due to a different historic bug).
Any idea?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 9 lines · Jan Kiszka
Hi,
notice while testing v2 of my vcpu state series: Starting SMP guests like Linux or Vista without in-kernel irqchip and with more than one CPU make them lock up during boot (Vista) or spit out messages like
udevd[112] trap invalid opcode ip:7fc434630950 sp:7fff3cd3fcb8 error:0 in libc-2.9.so[7fc4345b2000+14f000]
Looks like interrupt is injected as exception. Can you try to bisect?
--
Gleb.
Quoted 11 lines · Gleb Natapov
Quoted 9 lines · Jan Kiszka
Hi,
notice while testing v2 of my vcpu state series: Starting SMP guests like Linux or Vista without in-kernel irqchip and with more than one CPU make them lock up during boot (Vista) or spit out messages like
udevd[112] trap invalid opcode ip:7fc434630950 sp:7fff3cd3fcb8 error:0 in libc-2.9.so[7fc4345b2000+14f000]
Looks like interrupt is injected as exception. Can you try to bisect?
Already started (as low prio background task), first looking for a good version. If you know a recent one, I'm a taker.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Gleb Natapov
Quoted 6 lines · Jan Kiszka
Hi,
notice while testing v2 of my vcpu state series: Starting SMP guests like Linux or Vista without in-kernel irqchip and with more than one CPU make them lock up during boot (Vista) or spit out messages like
Quoted 8 lines
Quoted 4 lines
Quoted 3 lines
udevd[112] trap invalid opcode ip:7fc434630950 sp:7fff3cd3fcb8 error:0 in libc-2.9.so[7fc4345b2000+14f000]
Looks like interrupt is injected as exception. Can you try to bisect?
Already started (as low prio background task), first looking for a good version. If you know a recent one, I'm a taker.
Nope, didn't try no kernel irqchip for a long time.
--
Gleb.
Quoted 12 lines · Gleb Natapov
Quoted 11 lines · Jan Kiszka
Quoted 10 lines · Gleb Natapov
Quoted 9 lines · Jan Kiszka
Hi,
notice while testing v2 of my vcpu state series: Starting SMP guests like Linux or Vista without in-kernel irqchip and with more than one CPU make them lock up during boot (Vista) or spit out messages like
udevd[112] trap invalid opcode ip:7fc434630950 sp:7fff3cd3fcb8 error:0 in libc-2.9.so[7fc4345b2000+14f000]
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Looks like interrupt is injected as exception. Can you try to bisect?
Already started (as low prio background task), first looking for a good version. If you know a recent one, I'm a taker.
Nope, didn't try no kernel irqchip for a long time.
Kernel plays the key role here, either kvm-kmod or actually the kvm
module: kvm-kmod-2.6.31.6 works, the 2.6.32 series and later do not. Digging deeper...
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 14 lines · Jan Kiszka
Quoted 13 lines · Gleb Natapov
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Gleb Natapov
Quoted 9 lines · Jan Kiszka
Hi,
notice while testing v2 of my vcpu state series: Starting SMP guests like Linux or Vista without in-kernel irqchip and with more than one CPU make them lock up during boot (Vista) or spit out messages like
udevd[112] trap invalid opcode ip:7fc434630950 sp:7fff3cd3fcb8 error:0 in libc-2.9.so[7fc4345b2000+14f000]
Looks like interrupt is injected as exception. Can you try to bisect?
Quoted 8 lines
Quoted 4 lines
Quoted 3 lines
Already started (as low prio background task), first looking for a good version. If you know a recent one, I'm a taker.
Nope, didn't try no kernel irqchip for a long time.
Kernel plays the key role here, either kvm-kmod or actually the kvm
module: kvm-kmod-2.6.31.6 works, the 2.6.32 series and later do not. Digging deeper...
I take this back: It works for Linux guests, but Vista crashes also with old kvm-kmod. So there is no way around real debugging.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Jan Kiszka
Quoted 16 lines · Gleb Natapov
Quoted 15 lines · Jan Kiszka
Quoted 11 lines · Gleb Natapov
Quoted 9 lines · Jan Kiszka
Hi,
notice while testing v2 of my vcpu state series: Starting SMP guests like Linux or Vista without in-kernel irqchip and with more than one CPU make them lock up during boot (Vista) or spit out messages like
udevd[112] trap invalid opcode ip:7fc434630950 sp:7fff3cd3fcb8 error:0 in libc-2.9.so[7fc4345b2000+14f000]
Looks like interrupt is injected as exception. Can you try to bisect?
Already started (as low prio background task), first looking for a good version. If you know a recent one, I'm a taker.
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
Nope, didn't try no kernel irqchip for a long time.
Kernel plays the key role here, either kvm-kmod or actually the kvm
module: kvm-kmod-2.6.31.6 works, the 2.6.32 series and later do not. Digging deeper...I take this back: It works for Linux guests, but Vista crashes also with old kvm-kmod. So there is no way around real debugging.
Upstream qemu-kvm/kvm works for me. Boot linux with -smp 2 and windows2008-32 with -smp 4.
--
Gleb.
Quoted 20 lines · Gleb Natapov
Quoted 19 lines · Jan Kiszka
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Gleb Natapov
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Gleb Natapov
Quoted 6 lines · Jan Kiszka
Hi,
notice while testing v2 of my vcpu state series: Starting SMP guests like Linux or Vista without in-kernel irqchip and with more than one CPU make them lock up during boot (Vista) or spit out messages like
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
udevd[112] trap invalid opcode ip:7fc434630950 sp:7fff3cd3fcb8 error:0 in libc-2.9.so[7fc4345b2000+14f000]
Looks like interrupt is injected as exception. Can you try to bisect?
Already started (as low prio background task), first looking for a good version. If you know a recent one, I'm a taker.
Nope, didn't try no kernel irqchip for a long time.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Kernel plays the key role here, either kvm-kmod or actually the kvm
module: kvm-kmod-2.6.31.6 works, the 2.6.32 series and later do not. Digging deeper...I take this back: It works for Linux guests, but Vista crashes also with old kvm-kmod. So there is no way around real debugging.
Upstream qemu-kvm/kvm works for me. Boot linux with -smp 2 and windows2008-32 with -smp 4.
We seem to have two issues:
- kvm.git master breaks 64-bit linux guests under -no-kvm-irqchip + smp (#UD pop up in guest user space). 2.6.33 kvm is fine. Will try to bisect this the next days.
- My Vista x64 image apparently suffer from a race (I suspect in user space) that lets it deadlock on a spinlock, independent of the underlying kernel kvm version.
Jan