From: Stefan Hajnoczi <stefanha@gmail.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: avi@redhat.com, mtosatti@redhat.com, kvm@vger.kernel.org
Subject: Re: [RFC PATCH 0/3] Add segment limit checks to emulator
Date: Thu, 8 Jul 2010 09:05:36 +0100 [thread overview]
Message-ID: <AANLkTil2NVBcFC1vic8mT5S0IpCHJY1LixdFpT4SW67x@mail.gmail.com> (raw)
In-Reply-To: <1278537839-20144-1-git-send-email-m.gamal005@gmail.com>
On Wed, Jul 7, 2010 at 10:23 PM, Mohammed Gamal <m.gamal005@gmail.com> wrote:
> After some conversation with Avi concerning why unreal mode has been seen to work
> with KVM on Intel. It clears out the scenario is caused as follows:
>
> - guest enters big real mode
> - kvm squashes limit to 64k-1
> - guest executes instructions with offset > 64k
> - cpu issues #GP due to limit violation
> - kvm handle_rmode_exception() -> emulator
> - emulator ignores limit, emulates instruction
>
> With these applied I am getting vmentry failures with SeaBIOS and
> gPXE. So it's needless to say that these patches are not meant for merging!
Thanks for testing with gPXE and please don't hesitate to discuss
issues you hit with gPXE on gpxe-devel@etherboot.org. I look forward
to your big real mode work :).
> Mohammed Gamal (3):
> Add helper methods to get segment limits
> x86 emulator: Add cs_base() helper
> x86 emulator: Add segment limit checks and helper functions
>
> arch/x86/include/asm/kvm_emulate.h | 1 +
> arch/x86/include/asm/kvm_host.h | 1 +
> arch/x86/kvm/emulate.c | 123 +++++++++++++++++++++++++++++-------
> arch/x86/kvm/svm.c | 8 +++
> arch/x86/kvm/vmx.c | 8 +++
> arch/x86/kvm/x86.c | 12 ++++
> 6 files changed, 130 insertions(+), 23 deletions(-)
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Stefan
next prev parent reply other threads:[~2010-07-08 8:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 21:23 [RFC PATCH 0/3] Add segment limit checks to emulator Mohammed Gamal
2010-07-07 21:23 ` [RFC PATCH 1/3] Add helper methods to get segment limits Mohammed Gamal
2010-07-07 21:23 ` [RFC PATCH 2/3] x86 emulator: Add cs_base() helper Mohammed Gamal
2010-07-07 21:23 ` [RFC PATCH 3/3] x86 emulator: Add segment limit checks and helper functions Mohammed Gamal
2010-07-08 8:01 ` Avi Kivity
2010-07-08 8:05 ` Stefan Hajnoczi [this message]
2010-07-08 8:07 ` [RFC PATCH 0/3] Add segment limit checks to emulator 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=AANLkTil2NVBcFC1vic8mT5S0IpCHJY1LixdFpT4SW67x@mail.gmail.com \
--to=stefanha@gmail.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=m.gamal005@gmail.com \
--cc=mtosatti@redhat.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;
as well as URLs for NNTP newsgroup(s).