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 /include/linux/kvm.h | |
parent | c54d2aba27f0c505d61700d656c5943e96982e60 (diff) | |
download | op-kernel-dev-a9c7399d6cda0a092b347f8ee49bbe44f6e1fe66.zip op-kernel-dev-a9c7399d6cda0a092b347f8ee49bbe44f6e1fe66.tar.gz |
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 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index ca62b8e..172639e 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h @@ -251,6 +251,9 @@ struct kvm_run { } dcr; struct { __u32 suberror; + /* Available with KVM_CAP_INTERNAL_ERROR_DATA: */ + __u32 ndata; + __u64 data[16]; } internal; /* Fix the size of the union. */ char padding[256]; @@ -484,6 +487,7 @@ struct kvm_ioeventfd { #define KVM_CAP_XEN_HVM 38 #endif #define KVM_CAP_ADJUST_CLOCK 39 +#define KVM_CAP_INTERNAL_ERROR_DATA 40 #ifdef KVM_CAP_IRQ_ROUTING |