All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] MemoryRegionOps' {min,max}_access_size fields
Date: Mon, 13 Apr 2015 09:47:26 +0100	[thread overview]
Message-ID: <552B9EBE02000078000715AC@mail.emea.novell.com> (raw)
In-Reply-To: <55191C34.2000807@redhat.com>

>>> On 30.03.15 at 11:49, <pbonzini@redhat.com> wrote:
> On 27/03/2015 17:21, Jan Beulich wrote:
>> And then the way access_with_adjusted_size() works, it looks to
>> me as if with .impl.min_access_size set to greater than 1
>> unaligned accesses could still reach the actual read or write
>> handler, as only the access size would get bumped, but no
>> adjustment be made to the address.
> 
> I don't understand what you mean exactly.  Do you have an example?

access_size_min = 4 together with size = 1 yield access_size = 4,
but for a not 4-byte-aligned address (which still is properly aligned
for the original 1-byte access) access() will be called with a mis-
aligned address/size pair.

Jan

      reply	other threads:[~2015-04-13  9:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27 16:21 [Qemu-devel] MemoryRegionOps' {min,max}_access_size fields Jan Beulich
2015-03-30  9:49 ` Paolo Bonzini
2015-04-13  8:47   ` Jan Beulich [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=552B9EBE02000078000715AC@mail.emea.novell.com \
    --to=jbeulich@suse.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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 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.