kvm: Print something before calling abort() if KVM_RUN fails
PATCH 1/1 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 <[email protected]>
--- kvm-all.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
kvm-all.c +2 -1
@@ -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 (); }
Signature · 1 line
1.7.7.3
Stefan Hajnoczi
AppliedQuoted 7 lines · Michael Ellerman
It's a little unfriendly to call
abort()without printing any sort of error message. So turn theDPRINTK()into anfprintf(stderr, ...).Signed-off-by Michael Ellerman <[email protected]>--- kvm-all.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches
Stefan