From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Charls D. Chap" <chapcharls@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] From virtio_kick until VM-exit?
Date: Sat, 30 Jul 2016 09:35:58 +0100 [thread overview]
Message-ID: <CAJSP0QWx6923chiVTsekom5_+1AAr7d8MG9fgHoPxUKHtmt1FQ@mail.gmail.com> (raw)
In-Reply-To: <CAA6eV_Rk38Q4-YATU7cziCcFJNjX2T2FjKYwDsCDm0dZgyrakQ@mail.gmail.com>
On Fri, Jul 29, 2016 at 9:00 PM, Charls D. Chap <chapcharls@gmail.com> wrote:
Please use Reply-All when responding to a mailing list thread. This
keeps the mailing list (qemu-devel@nongnu.org) in the CC list so your
replies are sent to the mailing list too. This way the discussion
stays public on the mailing list and others can participate.
> I've read again and again the code. Please let me ask you one last question.
>
> the question is, where is the VMEXIT and VMENTRY code.
>
>
> If i have this, i can answer the following that bother me:
> 1)
> What is a VMEXIT, what mechanism? is it an interrupt? Same for VMENTRY
> Where does the VMENTRY return? In an interrupt handler?
>
> 2)
> Which are the parameters of vmetry and vmexit
> does each vcpu has a specific VPID or does it change in every RESUME
>
> 3)
> What is a hypercall? A pair of VMEXIT-VMENTRY? or is it oneway (does it ever
> return?) Or there are many types of hypercalls
>
> 4)
> When we do vmexit, Is it another context? I am mean, does the stack changes?
> What is the guest stack? Each vcpu has one stack?
Please look at the Intel Software Developer's Manuals and read about
VMX instructions:
https://www-ssl.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html
Once you have an overview you'll understand the semantics and be able
to grep for the relevant code in the kvm kernel module.
Stefan
next prev parent reply other threads:[~2016-07-30 8:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAA6eV_Susgqqnoi4Gy8Ohg3RROOLq6Uuv9OZbGqBh_p_yq5kAA@mail.gmail.com>
[not found] ` <CAJSP0QW-HLiuA6MCPEK3uKEnSty65JpTz-_b9sOmjTL8DZ4byw@mail.gmail.com>
2016-07-27 9:19 ` [Qemu-devel] From virtio_kick until VM-exit? charls chap
2016-07-27 9:51 ` Stefan Hajnoczi
2016-07-27 12:42 ` Stefan Hajnoczi
2016-07-27 12:52 ` Stefan Hajnoczi
2016-07-27 13:20 ` Charls D. Chap
2016-07-27 13:46 ` Stefan Hajnoczi
[not found] ` <CAA6eV_Rk38Q4-YATU7cziCcFJNjX2T2FjKYwDsCDm0dZgyrakQ@mail.gmail.com>
2016-07-30 8:35 ` Stefan Hajnoczi [this message]
2016-07-27 9:30 charls chap
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=CAJSP0QWx6923chiVTsekom5_+1AAr7d8MG9fgHoPxUKHtmt1FQ@mail.gmail.com \
--to=stefanha@gmail.com \
--cc=chapcharls@gmail.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).