aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-11-04 04:54:59 -0500
committerAvi Kivity <avi@redhat.com>2009-12-03 02:32:24 -0500
commita9c7399d6cda0a092b347f8ee49bbe44f6e1fe66 (patch)
treea00b781aa1521efc387ae9b59875862cb37c1d3f /virt/kvm
parentc54d2aba27f0c505d61700d656c5943e96982e60 (diff)
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.c1
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)
1653#ifdef CONFIG_KVM_APIC_ARCHITECTURE 1653#ifdef CONFIG_KVM_APIC_ARCHITECTURE
1654 case KVM_CAP_SET_BOOT_CPU_ID: 1654 case KVM_CAP_SET_BOOT_CPU_ID:
1655#endif 1655#endif
1656 case KVM_CAP_INTERNAL_ERROR_DATA:
1656 return 1; 1657 return 1;
1657#ifdef CONFIG_HAVE_KVM_IRQCHIP 1658#ifdef CONFIG_HAVE_KVM_IRQCHIP
1658 case KVM_CAP_IRQ_ROUTING: 1659 case KVM_CAP_IRQ_ROUTING: