KVM: Allow internal errors reported to userspace to carry extra data
authorAvi Kivity <avi@redhat.com>
Wed, 4 Nov 2009 09:54:59 +0000 (11:54 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:24 +0000 (09:32 +0200)
commita9c7399d6cda0a092b347f8ee49bbe44f6e1fe66
treea00b781aa1521efc387ae9b59875862cb37c1d3f
parentc54d2aba27f0c505d61700d656c5943e96982e60
KVM: Allow internal errors reported to userspace to carry extra data

Usually userspace will freeze the guest so we can inspect it, but some
internal state is not available.  Add extra data to internal error
reporting so we can expose it to the debugger.  Extra data is specific
to the suberror.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/vmx.c
include/linux/kvm.h
virt/kvm/kvm_main.c