All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Jan Beulich <JBeulich@suse.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] MemoryRegionOps' {min,max}_access_size fields
Date: Mon, 30 Mar 2015 11:49:40 +0200	[thread overview]
Message-ID: <55191C34.2000807@redhat.com> (raw)
In-Reply-To: <55159192020000780006EBB7@mail.emea.novell.com>



On 27/03/2015 17:21, Jan Beulich wrote:
> Hello,
> 
> I'm trying to understand what the idea behind these is. For one,
> without .valid.accepts set I can't see the two respective .valid
> fields take effect at all. Yet all examples I looked at don't set
> .valid.accepts. What's the deal here?

The examples you see of .valid.min_access_size/max_access_size could
indeed be removed.  Most of the time, whether an access is valid ==
whether the access is naturally aligned.

.valid.min_access_size/.valid.max_access_size is really the access size
expected by .valid.accepts.

> 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?

Paolo

  reply	other threads:[~2015-03-30  9:49 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 [this message]
2015-04-13  8:47   ` 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=55191C34.2000807@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=JBeulich@suse.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.