From: Keir Fraser <keir@xensource.com>
To: Jan Beulich <jbeulich@novell.com>, xen-devel@lists.xensource.com
Subject: Re: assumptions when hvm guest uses string instructions on MMIO memory
Date: Wed, 29 Nov 2006 17:19:56 +0000 [thread overview]
Message-ID: <C19371BC.53FD%keir@xensource.com> (raw)
In-Reply-To: <456DC393.76E4.0078.0@novell.com>
On 29/11/06 16:29, "Jan Beulich" <jbeulich@novell.com> wrote:
> Likewise I find it at least strange that all the I/O related
> hvm_copy_{from,to}_guest_virt invocations have their return value
> cast to void instead of forcing page faults into the guest. While I
> can see the point for single datum instructions (the CPU supposedly
> did the checking, except perhaps for ins/outs), movs where the
> non-mmio address crosses a page boundary and lods/stos because
> they're not being broken up would still seem to cause issues. Even
> in the single datum case I think it would be much more consistent
> to force a fault into the guest rather than silently ignoring any
> problems.
Although it's not going to happen for 3.0.4 now, my changes to the
x86_emulate code are being done with the intention that it can replace the
mmio emulator for 3.0.5. This will present a clean uniform interface for all
memory accesses performed during emulation of an instruction.
So don't get too worked up about the deficiencies of the current mmio code,
but do feel free to kick the x86_emulate routines. :-)
-- Keir
next prev parent reply other threads:[~2006-11-29 17:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 16:29 assumptions when hvm guest uses string instructions on MMIO memory Jan Beulich
2006-11-29 17:19 ` Keir Fraser [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-29 16:50 Jan Beulich
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=C19371BC.53FD%keir@xensource.com \
--to=keir@xensource.com \
--cc=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.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 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.