aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2011-12-16 11:20:20 +1100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-12-16 10:45:17 +0000
commit7b011fbc050d442a20ed5d2a29724570c1557661 (patch)
tree6a3084c180846fb09958b29face89abd5f2496fc /kvm-all.c
parentbfc213af97c5f7768ad7549bc95134cb4e218a76 (diff)
kvm: Print something before calling abort() if KVM_RUN fails
It's a little unfriendly to call abort() without printing any sort of error message. So turn the DPRINTK() into an fprintf(stderr, ...). Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 4c466d6aba..ac048bce50 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -977,7 +977,8 @@ int kvm_cpu_exec(CPUState *env)
ret = EXCP_INTERRUPT;
break;
}
- DPRINTF("kvm run failed %s\n", strerror(-run_ret));
+ fprintf(stderr, "error: kvm run failed %s\n",
+ strerror(-run_ret));
abort();
}