qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: drjones@redhat.com
Subject: Re: [Qemu-devel] [PATCH] kvm: do not abort if KVM_RUN fails
Date: Fri, 29 Aug 2014 16:11:08 +0200	[thread overview]
Message-ID: <540089FC.1040501@de.ibm.com> (raw)
In-Reply-To: <1409320717-11186-1-git-send-email-pbonzini@redhat.com>

On 29/08/14 15:58, Paolo Bonzini wrote:
> Just go to the internal error runstate.  This lets you use the "x",
> "dump-guest-memory" or "info register" commands.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>

Very nice. This helps a lot in understanding some problems. (Even if those are rare).

Christian

> ---
>  kvm-all.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/kvm-all.c b/kvm-all.c
> index b240bf8..f5edcb1 100644
> --- a/kvm-all.c
> +++ b/kvm-all.c
> @@ -1738,7 +1738,8 @@ int kvm_cpu_exec(CPUState *cpu)
>              }
>              fprintf(stderr, "error: kvm run failed %s\n",
>                      strerror(-run_ret));
> -            abort();
> +            ret = -1;
> +            break;
>          }
> 
>          trace_kvm_run_exit(cpu->cpu_index, run->exit_reason);
> 

      reply	other threads:[~2014-08-29 14:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29 13:58 [Qemu-devel] [PATCH] kvm: do not abort if KVM_RUN fails Paolo Bonzini
2014-08-29 14:11 ` Christian Borntraeger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=540089FC.1040501@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=drjones@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).