From: Avi Kivity <avi@redhat.com>
To: "Kumar, Venkat" <Venkat.Kumar@lsi.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Qemu process in Guest
Date: Fri, 03 Apr 2009 14:08:25 +0300 [thread overview]
Message-ID: <49D5EE29.5030704@redhat.com> (raw)
In-Reply-To: <3D9CB4061D1EB3408D4A0B910433453C0302918A0C@inbmail01.lsi.com>
Kumar, Venkat wrote:
>
> Thanks for the reply.
>
>
>
> I had wrong understanding that Qemu runs in Guest.
>
> But now I understand that *ioctl(fd, KVM_RUN, 0);* will tell KVM to
> load the guest and whenever there is an exception in the guest, KVM
> traps it and executes the host code post ioctl depending on the reason
> for exit.
>
>
>
> Can you point me to the code where the KVM traps the exception and
> loads the host to execute the post ioctl code?
>
That's what vmx.c and svm.c in the kernel are about, look at
vmx_vcpu_run() and svm_vcpu_run().
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
next parent reply other threads:[~2009-04-03 11:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3D9CB4061D1EB3408D4A0B910433453C0302918A0C@inbmail01.lsi.com>
2009-04-03 11:08 ` Avi Kivity [this message]
2009-04-02 10:25 Qemu process in Guest Kumar, Venkat
2009-04-02 13:34 ` 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=49D5EE29.5030704@redhat.com \
--to=avi@redhat.com \
--cc=Venkat.Kumar@lsi.com \
--cc=kvm@vger.kernel.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.