diff options
author | Avi Kivity <avi@redhat.com> | 2009-11-04 12:54:59 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 10:32:24 +0300 |
commit | a9c7399d6cda0a092b347f8ee49bbe44f6e1fe66 (patch) | |
tree | a00b781aa1521efc387ae9b59875862cb37c1d3f /virt/kvm | |
parent | c54d2aba27f0c505d61700d656c5943e96982e60 (diff) | |
download | linux-a9c7399d6cda0a092b347f8ee49bbe44f6e1fe66.tar.xz |
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/kvm')
-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: |