diff options
author | Avi Kivity <avi@redhat.com> | 2009-11-04 11:54:59 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 09:32:24 +0200 |
commit | a9c7399d6cda0a092b347f8ee49bbe44f6e1fe66 (patch) | |
tree | a00b781aa1521efc387ae9b59875862cb37c1d3f /virt | |
parent | c54d2aba27f0c505d61700d656c5943e96982e60 (diff) | |
download | blackbird-obmc-linux-a9c7399d6cda0a092b347f8ee49bbe44f6e1fe66.tar.gz blackbird-obmc-linux-a9c7399d6cda0a092b347f8ee49bbe44f6e1fe66.zip |
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>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index bd44fb48ac43..f92ba138007a 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1653,6 +1653,7 @@ static long kvm_dev_ioctl_check_extension_generic(long arg) #ifdef CONFIG_KVM_APIC_ARCHITECTURE case KVM_CAP_SET_BOOT_CPU_ID: #endif + case KVM_CAP_INTERNAL_ERROR_DATA: return 1; #ifdef CONFIG_HAVE_KVM_IRQCHIP case KVM_CAP_IRQ_ROUTING: |