All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Cc: kvm-devel@lists.sourceforge.net
Subject: Re: [ToDo] Real Mode Support
Date: Mon, 11 Feb 2008 16:20:23 +0200	[thread overview]
Message-ID: <47B059A7.5080109@qumranet.com> (raw)
In-Reply-To: <20080211143911.37735378@frecb000711>

Guillaume Thouvenin wrote:
>>>   
>>>       
>> As using the emulator is likely to be slower than VT, we can call the 
>> emulator only if we are in a "VT unfriendly" state, so the code might 
>> look like
>>
>>     if (vmx->rmode.active && big_real_mode(vmx))
>>           ...
>>
>> In addition, there are some protected-mode states that VT can't handle 
>> (cs.rpl != ss.rpl IIRC) so we can emulate those cases as well.
>>
>> To improve speed, we may want to emulate >1 instruction per iteration.
>>     
>
> So the plan is to keep the usage of vm86 mode until we detect a "VT
> unfriendly" state. I think about a VMentry failure to detect this kind
> of state?
>   

Yes, that's a good way.

> Then, when we are in big_real_mode state, we emulate the code as
> suggested by Avi with the optimisation that consists to emulate more
> than one instruction per iteration.
>
>   

Yes.  Note we sometimes need to emulate in protected mode as well.

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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

      reply	other threads:[~2008-02-11 14:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06  7:33 [ToDo] Real Mode Support Guillaume Thouvenin
2008-02-06  8:52 ` Izik Eidus
     [not found]   ` <1202287974.23342.8.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-02-06 12:07     ` Guillaume Thouvenin
2008-02-06 12:52       ` Izik Eidus
2008-02-06 23:52       ` Kamble, Nitin A
2008-02-07 18:36         ` Alexey Eremenko
2008-02-06 17:32 ` Anthony Liguori
     [not found]   ` <47A9EF21.3050103-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-02-06 17:47     ` Izik Eidus
2008-02-10 11:44   ` Avi Kivity
2008-02-11 13:39     ` Guillaume Thouvenin
2008-02-11 14:20       ` Avi Kivity [this message]

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=47B059A7.5080109@qumranet.com \
    --to=avi@qumranet.com \
    --cc=guillaume.thouvenin@ext.bull.net \
    --cc=kvm-devel@lists.sourceforge.net \
    /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.