Skip to contentSkip to conversation

-M g3beige KVM emulation failure on reset

DISCUSSION Andreas Färber 2 participants 2 messages Jun 15, 2012 – Jun 28, 2012

lore
Share & tools
lore
#0 lore raw

Hello Alex,

As mentioned recently, I can reproduce an emulation failure on POWER5 with PR KVM on openSUSE Factory a few seconds after reset:

$ uname -a
Linux power5 3.4.0-10-ppc64 #1 SMP Wed May 23 13:59:25 UTC 2012
(a3c5f2c) ppc64 ppc64 ppc64 GNU/Linux
# ppc-softmmu/qemu-system-ppc -enable-kvm -nographic
Quoted 6 lines
Quoted 6 lines

==============================>> OpenBIOS 1.0 [May 30 2012 16:55] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000
CPU type PowerPC,750

Welcome to OpenBIOS v1.0 built on May 30 2012 16:55 Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
No valid state has been set by load or init-program

0 > reset-all

Quoted 6 lines
Quoted 6 lines

==============================>> OpenBIOS 1.0 [May 30 2012 16:55] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000
CPU type PowerPC,750

Welcome to OpenBIOS v1.0 built on May 30 2012 16:55 Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
No valid state has been set by load or init-program

0 > KVM: unknown exit, hardware reason 80893020
NIP 00000700 LR fff19d24 CTR fff19d04 XER 20000000
MSR 00000000 HID0 00000000 HF 00000000 idx 1
TB 00000000 00000000 DECR 00000000
GPR00 0000000000000004 0000000007df7e10 0000000000000000 0000000080893020 GPR04 00000000fffb3f80 0000000000000000 0000000000000000 0000000000000000 GPR08 0000000000000000 00000000fffb0000 00000000fffb4710 0000000000000000 GPR12 0000000000000000 0000000000000000 00000000fffb3f8c 00000000fff2f7dc GPR16 00000000fff2f7ee 00000000fffb4710 00000000fff2ef81 0000000000000009 GPR20 00000000fff2f7cf 00000000fff2ef81 00000000fff2ef6f 00000000fff2eeef GPR24 00000000fff2ef77 00000000fffb3630 000000000000000d 0000000007c5a888 GPR28 0000000000000008 0000000000000001 0000000007c5b090 00000000fff44e54
CR 42000044 [ G E - - - - G G ] RES ffffffff
FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPSCR 00000000
SRR0 fff19d48 SRR1 00000030 PVR 00080301 VRSAVE 00000000

SPRG0 07e00000 SPRG1 07df75f0  SPRG2 22000048  SPRG3 00000000
SPRG4 00000000 SPRG5 00000000  SPRG6 00000000  SPRG7 00000000

SDR1 07e00000

Message from syslogd@power5 at Jun 15 14:48:11 ...
kernel:kvmppc_emulate_mmio: emulation failed (4bfff991)

dmesg has this:
Couldn't emulate instruction 0xffffffff (op 63 xop 1023)
kvmppc_emulate_mmio: emulation failed (4bfff991)

My first steps with PowerKVM. Any advice for debugging this?

Thanks,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#1 lore raw
Quoted 61 lines · Andreas Färber

Hello Alex,

As mentioned recently, I can reproduce an emulation failure on POWER5 with PR KVM on openSUSE Factory a few seconds after reset:

$ uname -a
Linux power5 3.4.0-10-ppc64 #1 SMP Wed May 23 13:59:25 UTC 2012
(a3c5f2c) ppc64 ppc64 ppc64 GNU/Linux
# ppc-softmmu/qemu-system-ppc -enable-kvm -nographic
Quoted 6 lines
Quoted 6 lines

==============================>>> OpenBIOS 1.0 [May 30 2012 16:55] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000
CPU type PowerPC,750

Welcome to OpenBIOS v1.0 built on May 30 2012 16:55 Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
No valid state has been set by load or init-program

0> reset-all

Quoted 6 lines
Quoted 6 lines

==============================>>> OpenBIOS 1.0 [May 30 2012 16:55] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000
CPU type PowerPC,750

Welcome to OpenBIOS v1.0 built on May 30 2012 16:55 Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
No valid state has been set by load or init-program

0> KVM: unknown exit, hardware reason 80893020
NIP 00000700 LR fff19d24 CTR fff19d04 XER 20000000
MSR 00000000 HID0 00000000 HF 00000000 idx 1
TB 00000000 00000000 DECR 00000000
GPR00 0000000000000004 0000000007df7e10 0000000000000000 0000000080893020 GPR04 00000000fffb3f80 0000000000000000 0000000000000000 0000000000000000 GPR08 0000000000000000 00000000fffb0000 00000000fffb4710 0000000000000000 GPR12 0000000000000000 0000000000000000 00000000fffb3f8c 00000000fff2f7dc GPR16 00000000fff2f7ee 00000000fffb4710 00000000fff2ef81 0000000000000009 GPR20 00000000fff2f7cf 00000000fff2ef81 00000000fff2ef6f 00000000fff2eeef GPR24 00000000fff2ef77 00000000fffb3630 000000000000000d 0000000007c5a888 GPR28 0000000000000008 0000000000000001 0000000007c5b090 00000000fff44e54
CR 42000044 [ G E - - - - G G ] RES ffffffff
FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPSCR 00000000
SRR0 fff19d48 SRR1 00000030 PVR 00080301 VRSAVE 00000000

SPRG0 07e00000 SPRG1 07df75f0  SPRG2 22000048  SPRG3 00000000
SPRG4 00000000 SPRG5 00000000  SPRG6 00000000  SPRG7 00000000

SDR1 07e00000

Quoted 8 lines

Message from syslogd@power5 at Jun 15 14:48:11 ...
kernel:kvmppc_emulate_mmio: emulation failed (4bfff991)

dmesg has this:
Couldn't emulate instruction 0xffffffff (op 63 xop 1023)
kvmppc_emulate_mmio: emulation failed (4bfff991)

My first steps with PowerKVM. Any advice for debugging this?

Hrm. I suppose we don't handle reset properly? :)

Does it work without KVM?

Alex