public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: kvm-devel@lists.sourceforge.net,
	Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net>,
	Rik van Riel <riel@surriel.com>
Subject: Re: Real Mode Improvement on Intel Hosts - GSoC Project
Date: Sun, 27 Apr 2008 00:02:07 +0300	[thread overview]
Message-ID: <4813984F.1000500@qumranet.com> (raw)
In-Reply-To: <52d4a3890804260229n341754f0y65ecc015d0aebf35@mail.gmail.com>

Mohammed Gamal wrote:
>>  Why do that unconditionally, instead of only when in a big-real-mode state?
>>     
>
> Is big-real-mode the only state where we have problems?
>   

In general, we need to emulate whenever we are in a VT-unfriendly state, 
where that is defined as guest state that fails the guest state checks 
defined by section 22.3.1 of volume 3B of the Intel software development 
manual, "checks on the guest state area", when that state is legal in a 
real processor.  To date, we have encountered only two instances of such 
VT-unfriendly states:

- "big real mode", where segment limits are not exactly 0xffff
- protected mode transitions, where cs.rpl !=ss.rpl for a brief while

There may well be more, as we remove the various hacks currently in 
place, and as we expand the envelope to support hybrid 16/32 bit guests 
like Windows 3.1 and Windows 95.

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


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

  reply	other threads:[~2008-04-26 21:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 14:58 Real Mode Improvement on Intel Hosts - GSoC Project Mohammed Gamal
2008-04-24 15:47 ` Avi Kivity
2008-04-24 15:53   ` Mohammed Gamal
2008-04-24 16:05 ` Anthony Liguori
2008-04-25  6:05   ` Guillaume Thouvenin
2008-04-25  6:51     ` Avi Kivity
2008-04-25  7:27       ` Guillaume Thouvenin
2008-04-26  6:49   ` Avi Kivity
2008-04-26  9:29     ` Mohammed Gamal
2008-04-26 21:02       ` Avi Kivity [this message]
2008-04-26 15:19     ` Anthony Liguori

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=4813984F.1000500@qumranet.com \
    --to=avi@qumranet.com \
    --cc=guillaume.thouvenin@ext.bull.net \
    --cc=kvm-devel@lists.sourceforge.net \
    --cc=m.gamal005@gmail.com \
    --cc=riel@surriel.com \
    /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