public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Willow Schlanger <wschlanger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: A small fix
Date: Mon, 25 Jun 2007 19:00:09 -0800	[thread overview]
Message-ID: <46808139.8040008@gmail.com> (raw)

Hi, in vmx_vcpu_setup() is this code:

	vmcs_writel(GUEST_IDTR_BASE, 0);
	vmcs_write32(GUEST_IDTR_LIMIT, 0xffff);

But if you use SIDT on a real processor, after boot-up, you will see the 
real-mode base is in fact 0, but the limit is 0x3ff. That is, in fact, 
the base an limit you are supposed to use when you switch back to real 
mode from protected mode.

So 0xffff should be changed to 0x03ff in the lines above.


Please write back with any comments...
Willow Schlanger

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

             reply	other threads:[~2007-06-26  3:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-26  3:00 Willow Schlanger [this message]
     [not found] ` <46808139.8040008-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2007-06-27 21:36   ` A small fix 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=46808139.8040008@gmail.com \
    --to=wschlanger-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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