Skip to contentSkip to conversation

32-bit qemu on current x86-64 kernel segfauls very early

DISCUSSION Christoph Hellwig 3 participants 6 messages Oct 31, 2010 – Nov 3, 2010 KVM

lore
Share & tools
lore
#0 lore raw

With Linus' git tree from today I can't boot qemu when using kvm. It seems to do fine, just glacially slow without -enable-kvm. The command simplest command line that fails is:

	/opt/qemu/bin/qemu-system-x86_64 -enable-kvm

I tried to get a backtrace from gdb, but it looks like:

(gdb) bt

#0  0x0806c491 in ?? ()
#1  0x0806cc38 in ?? ()
#2  0x0811be10 in ?? ()

Backtrace stopped: previous frame inner to this frame (corrupt stack?)

#1 lore raw
Quoted 5 lines · Christoph Hellwig

With Linus' git tree from today I can't boot qemu when using kvm. It seems to do fine, just glacially slow without -enable-kvm. The command simplest command line that fails is:

	/opt/qemu/bin/qemu-system-x86_64 -enable-kvm

This issue was caused by commit 9581d442b9058d3699b4be568b6e5eae38a41493

"KVM: Fix fs/gs reload oops with invalid ldt"

#2 lore raw
Quoted 11 lines · Christoph Hellwig
Quoted 5 lines · Christoph Hellwig

With Linus' git tree from today I can't boot qemu when using kvm. It seems to do fine, just glacially slow without -enable-kvm. The command simplest command line that fails is:

/opt/qemu/bin/qemu-system-x86_64 -enable-kvm

This issue was caused by commit 9581d442b9058d3699b4be568b6e5eae38a41493

"KVM: Fix fs/gs reload oops with invalid ldt"

Interesting, I guess we corrupt %fs on x86_64.

Intel or AMD?

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
#3 lore raw
Quoted 6 lines · Avi Kivity
Quoted 2 lines

"KVM: Fix fs/gs reload oops with invalid ldt"

Interesting, I guess we corrupt %fs on x86_64.

Intel or AMD?

Intel:

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz
stepping : 6
cpu MHz : 2133.000
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm dts tpr_shadow vnmi flexpriority
bogomips : 5588.00
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

#4 lore raw
Quoted 9 lines · Christoph Hellwig
Quoted 6 lines · Avi Kivity
Quoted 2 lines

"KVM: Fix fs/gs reload oops with invalid ldt"

Interesting, I guess we corrupt %fs on x86_64.

Intel or AMD?

Intel:

Thanks, reproduced and have a fix. Will send it out later.

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
#5 lore raw
In reply to Christoph Hellwig
Quoted 10 lines · Christoph Hellwig
Quoted 5 lines · Christoph Hellwig

With Linus' git tree from today I can't boot qemu when using kvm. It seems to do fine, just glacially slow without -enable-kvm. The command simplest command line that fails is:

	/opt/qemu/bin/qemu-system-x86_64 -enable-kvm

This issue was caused by commit 9581d442b9058d3699b4be568b6e5eae38a41493

"KVM: Fix fs/gs reload oops with invalid ldt"

I saw this issue too and I can confirm reverting this patch helps. Will test the proper fix when it appears.

Quoted 4 lines

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