]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
kvm: Improve reporting of fatal errors
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 21 Jan 2011 20:48:07 +0000 (21:48 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Sun, 23 Jan 2011 04:27:20 +0000 (02:27 -0200)
commitbb44e0d12df70bd4a653341db4446daf6a9326be
tree0ff333c9db7b4cf5038c5a60466e56ef5ba2ea4f
parent73aaec4a39b3cf11082303a6cf6bcde8796c09c6
kvm: Improve reporting of fatal errors

Report KVM_EXIT_UNKNOWN, KVM_EXIT_FAIL_ENTRY, and KVM_EXIT_EXCEPTION
with more details to stderr. The latter two are so far x86-only, so move
them into the arch-specific handler. Integrate the Intel real mode
warning on KVM_EXIT_FAIL_ENTRY that qemu-kvm carries, but actually
restrict it to Intel CPUs. Moreover, always dump the CPU state in case
we fail.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
kvm-all.c
target-i386/cpu.h
target-i386/cpuid.c
target-i386/kvm.c