public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Christoffer Dall <cd2436-WLbs8XpHrcb2fBVCVOL8/A@public.gmane.org>
Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Andreas Nilsson <apn2107-WLbs8XpHrcb2fBVCVOL8/A@public.gmane.org>
Subject: Re: Exception handling between QEMU and KVM
Date: Wed, 01 Jul 2009 12:00:16 +0300	[thread overview]
Message-ID: <4A4B25A0.70800@redhat.com> (raw)
In-Reply-To: <7d08b87d0906302028q4bd7c9efifd399be9529fdc5b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 07/01/2009 06:28 AM, Christoffer Dall wrote:
> Hi all.
>
> We are still working on our ARM port of KVM and we are managing to let
> the guest decompress the kernel image and run from relocated address
> and we can support enabling MMU before this.
>
> Howver, to debug relocated micro-hypervisor for exception handling, we
> are trying to implement some NOT_IMPLEMENTED() macros and ASSERT()
> macros.
>
> What we have done so far is simply to exit QEMU roughly after
> returning -EINVAL from the KVM_RUN system call, but before we start
> supporting an interrupt cycle we have to improve on this. Setting
> kvm_run->exit_reason = KVM_EXIT_EXCEPTION or kvm_run->exit_reason =
> KVM_EXIT_SHUTDOWN just results in QEMU looping in the cpu execution
> loop.
>
> Can someone point us in the direction of what we're missing here in
> order to exit the whole QEMU process from an exception occurring
> inside the guest?
>    

Not sure I understand.  Can't you call exit() or abort() after kvm 
returns an error?

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

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-07-01  9:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-01  3:28 Exception handling between QEMU and KVM Christoffer Dall
     [not found] ` <7d08b87d0906302028q4bd7c9efifd399be9529fdc5b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-01  6:28   ` Alexander Graf
2009-07-01  9:00   ` Avi Kivity [this message]
     [not found]     ` <4A4B25A0.70800-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-01 13:59       ` Christoffer Dall
     [not found]         ` <7d08b87d0907010659v6e0efac1va906991402589ab7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-01 15:02           ` 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=4A4B25A0.70800@redhat.com \
    --to=avi-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=apn2107-WLbs8XpHrcb2fBVCVOL8/A@public.gmane.org \
    --cc=cd2436-WLbs8XpHrcb2fBVCVOL8/A@public.gmane.org \
    --cc=kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.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