diff options
author | Avi Kivity <avi@redhat.com> | 2009-11-04 04:54:59 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 02:32:24 -0500 |
commit | a9c7399d6cda0a092b347f8ee49bbe44f6e1fe66 (patch) | |
tree | a00b781aa1521efc387ae9b59875862cb37c1d3f /arch/x86/kvm/vmx.c | |
parent | c54d2aba27f0c505d61700d656c5943e96982e60 (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 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index c9cc9596e1a6..c0e66dd58a47 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -3352,6 +3352,7 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) | |||
3352 | kvm_report_emulation_failure(vcpu, "emulation failure"); | 3352 | kvm_report_emulation_failure(vcpu, "emulation failure"); |
3353 | vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; | 3353 | vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; |
3354 | vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_EMULATION; | 3354 | vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_EMULATION; |
3355 | vcpu->run->internal.ndata = 0; | ||
3355 | ret = 0; | 3356 | ret = 0; |
3356 | goto out; | 3357 | goto out; |
3357 | } | 3358 | } |