public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Omar Khan <okhan-e94Sedi4moU@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: paravirtualization structure
Date: Tue, 20 Feb 2007 09:14:21 +0200	[thread overview]
Message-ID: <45DA9FCD.60009@qumranet.com> (raw)
In-Reply-To: <loom.20070220T011441-39-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>

Omar Khan wrote:
> Dor Laor <dor.laor@...> writes:
>
>
>   
>> Theoretically speaking the answer is yes, vmcall is a special
>> instruction that it one and only purpose is the exit from the guest.
>> While mov cr3 instruction might be bound to other actions of the
>> processor and might have more effects on the pipeline, this harder to
>> optimize for vmexit purposes.
>>
>>     
>
> I guess what is confusing me is that the vmcall causes an vmexit in VMX non-root
> mode (the one in which a paravirtualized guest is operating), but Avi says that
>  a hypercal (made using a vmcall) 'avoids' a vmentry/vmexit and Ingo comments in
> his patch that :
>
> "This utilizes the cr3 filter capability of the hardware - if this works out
> then no VM exit happens"
>
> NO VM-exits happen. hmmmm... maybe I need to go over the intel manuals more
> thoroughly, however any hints will be most welcomed. 
>   

Using the cr3 filter does not involve a hypercall.  Instead, it allows 
the guest to context switch without trapping on the mov %cr3 
instruction, by providing a set of pre-prepared cr3s.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  parent reply	other threads:[~2007-02-20  7:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-19 15:17 paravirtualization structure Omar Khan
     [not found] ` <loom.20070219T155153-393-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2007-02-19 15:24   ` Avi Kivity
2007-02-19 20:29     ` Omar Khan
     [not found]       ` <loom.20070219T211655-267-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2007-02-19 21:18         ` Dor Laor
2007-02-20  0:47           ` Omar Khan
     [not found]             ` <loom.20070220T011441-39-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2007-02-20  7:14               ` Avi Kivity [this message]
2007-02-20  8:18               ` Arjan van de Ven

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=45DA9FCD.60009@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=okhan-e94Sedi4moU@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