All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org
Subject: Re: [patch 2/3] kvm: handle internal error
Date: Thu, 11 Mar 2010 10:42:24 +0200	[thread overview]
Message-ID: <4B98ACF0.40702@redhat.com> (raw)
In-Reply-To: <20100309015644.207517219@redhat.com>

On 03/09/2010 03:53 AM, Marcelo Tosatti wrote:
> Port qemu-kvm's KVM_EXIT_INTERNAL_ERROR handling to upstream.
>
> Signed-off-by: Marcelo Tosatti<mtosatti@redhat.com>
>
> Index: qemu-kvm/kvm-all.c
> ===================================================================
> --- qemu-kvm.orig/kvm-all.c
> +++ qemu-kvm/kvm-all.c
> @@ -721,6 +721,28 @@ static int kvm_handle_io(uint16_t port,
>       return 1;
>   }
>
> +#ifdef KVM_CAP_INTERNAL_ERROR_DATA
> +static void kvm_handle_internal_error(CPUState *env, struct kvm_run *run)
> +{
> +
> +    if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) {
> +        int i;
> +
> +        fprintf(stderr, "KVM internal error. Suberror: %d\n",
> +                run->internal.suberror);
> +
> +        for (i = 0; i<  run->internal.ndata; ++i) {
> +            fprintf(stderr, "extra data[%d]: %"PRIx64"\n",
> +                    i, (uint64_t)run->internal.data[i]);
> +        }
> +    }
> +    cpu_dump_state(env, stderr, fprintf, 0);
> +    if (run->internal.suberror == KVM_INTERNAL_ERROR_EMULATION)
> +        fprintf(stderr, "emulation failure\n");
>    

{ braces }

> +    vm_stop(0);
> +}
> +#endif
>    

Should trigger a qmp message to let management know something went wrong 
(can come later).

-- 
error compiling committee.c: too many arguments to function


WARNING: multiple messages have this Message-ID (diff)
From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [patch 2/3] kvm: handle internal error
Date: Thu, 11 Mar 2010 10:42:24 +0200	[thread overview]
Message-ID: <4B98ACF0.40702@redhat.com> (raw)
In-Reply-To: <20100309015644.207517219@redhat.com>

On 03/09/2010 03:53 AM, Marcelo Tosatti wrote:
> Port qemu-kvm's KVM_EXIT_INTERNAL_ERROR handling to upstream.
>
> Signed-off-by: Marcelo Tosatti<mtosatti@redhat.com>
>
> Index: qemu-kvm/kvm-all.c
> ===================================================================
> --- qemu-kvm.orig/kvm-all.c
> +++ qemu-kvm/kvm-all.c
> @@ -721,6 +721,28 @@ static int kvm_handle_io(uint16_t port,
>       return 1;
>   }
>
> +#ifdef KVM_CAP_INTERNAL_ERROR_DATA
> +static void kvm_handle_internal_error(CPUState *env, struct kvm_run *run)
> +{
> +
> +    if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) {
> +        int i;
> +
> +        fprintf(stderr, "KVM internal error. Suberror: %d\n",
> +                run->internal.suberror);
> +
> +        for (i = 0; i<  run->internal.ndata; ++i) {
> +            fprintf(stderr, "extra data[%d]: %"PRIx64"\n",
> +                    i, (uint64_t)run->internal.data[i]);
> +        }
> +    }
> +    cpu_dump_state(env, stderr, fprintf, 0);
> +    if (run->internal.suberror == KVM_INTERNAL_ERROR_EMULATION)
> +        fprintf(stderr, "emulation failure\n");
>    

{ braces }

> +    vm_stop(0);
> +}
> +#endif
>    

Should trigger a qmp message to let management know something went wrong 
(can come later).

-- 
error compiling committee.c: too many arguments to function

  reply	other threads:[~2010-03-11  8:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09  1:53 [patch 0/3] misc uq/master updates Marcelo Tosatti
2010-03-09  1:53 ` [Qemu-devel] " Marcelo Tosatti
2010-03-09  1:53 ` [patch 1/3] target-i386: print EFER in cpu_dump_state Marcelo Tosatti
2010-03-09  1:53   ` [Qemu-devel] " Marcelo Tosatti
2010-03-11  8:35   ` Avi Kivity
2010-03-11  8:35     ` [Qemu-devel] " Avi Kivity
2010-03-11 18:53     ` Marcelo Tosatti
2010-03-11 18:53       ` [Qemu-devel] " Marcelo Tosatti
2010-03-14  7:36       ` Avi Kivity
2010-03-14  7:36         ` [Qemu-devel] " Avi Kivity
2010-03-09  1:53 ` [patch 2/3] kvm: handle internal error Marcelo Tosatti
2010-03-09  1:53   ` [Qemu-devel] " Marcelo Tosatti
2010-03-11  8:42   ` Avi Kivity [this message]
2010-03-11  8:42     ` [Qemu-devel] " Avi Kivity
2010-03-09  1:53 ` [patch 3/3] kvm: allow qemu to set EPT identity mapping address Marcelo Tosatti
2010-03-09  1:53   ` [Qemu-devel] " Marcelo Tosatti
2010-03-11  8:42   ` Avi Kivity
2010-03-11  8:42     ` [Qemu-devel] " Avi Kivity

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=4B98ACF0.40702@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.