From: Avi Kivity <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 5568706..05caa1c 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -875,6 +875,16 @@ static int kvm_handle_internal_error(kvm_context_t kvm,
{
fprintf(stderr, "KVM internal error. Suberror: %d\n",
run->internal.suberror);
+#ifdef KVM_CAP_INTERNAL_ERROR_DATA
+ if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) {
+ int i;
+
+ for (i = 0; i < run->internal.ndata; ++i) {
+ fprintf(stderr, "extra data[%d]: %"PRIx64"\n",
+ i, (uint64_t)run->internal.data[i]);
+ }
+ }
+#endif
kvm_show_regs(env);
if (run->internal.suberror == KVM_INTERNAL_ERROR_EMULATION)
fprintf(stderr, "emulation failure, check dmesg for details\n");
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html