From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Francisco Iglesias <frasse.iglesias@gmail.com>,
Andrew Jeffery <andrew@aj.id.au>
Cc: "Ben Widawsky" <ben.widawsky@intel.com>,
"David Hildenbrand" <david@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Chris Browy" <cbrowy@avery-design.com>,
Linuxarm <linuxarm@huawei.com>, "Peter Xu" <peterx@redhat.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Igor Mammedov" <imammedo@redhat.com>,
"Dan Williams" <dan.j.williams@intel.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: RFC: Memory region accesses where .valid.min_access_size < .impl.min_access_size
Date: Thu, 13 May 2021 14:36:27 +0200 [thread overview]
Message-ID: <2d5fdb5f-36d3-c998-ee36-f9d66cea7120@redhat.com> (raw)
In-Reply-To: <CAFEAcA8a+A2u=sF6L-A1ZK7hSiAd2n24Xf0J6j5LeBFa-RTMFw@mail.gmail.com>
On 5/13/21 2:23 PM, Peter Maydell wrote:
> On Thu, 13 May 2021 at 12:49, Jonathan Cameron
> <Jonathan.Cameron@huawei.com> wrote:
>> My initial suggestion was to fix this by adding the relatively
>> simple code needed in the driver to implement byte read / write,
>> but Ben pointed at the QEMU docs - docs/devel/memory.rst which
>> says
>> "
>> .impl.min_access_size, .impl.max_access_size define the access sizes
>> (in bytes) supported by the *implementation*; other access sizes will be
>> emulated using the ones available. For example a 4-byte write will be
>> emulated using four 1-byte writes, if .impl.max_access_size = 1.
>> "
>>
>> This isn't true when we have the situation where
>> .valid.min_access_size < .imp.min_access_size
>>
>> So change the docs or try to make this work?
See also this patch from Francisco:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg636935.html
And full unaligned access support from Andrew:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg461247.html
> I don't (yet) have a view on what the in-principle right thing
> should be, but in practice: how many devices do we have which
> set .valid.min_access_size < .imp.min_access_size ? If we want
> to change the semantics we'd need to look at those to see if they
> need to be adjusted (or if they're just currently buggy and would
> be fixed by the change).
>
> thanks
> -- PMM
>
next prev parent reply other threads:[~2021-05-13 12:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-13 11:47 RFC: Memory region accesses where .valid.min_access_size < .impl.min_access_size Jonathan Cameron
2021-05-13 12:23 ` Peter Maydell
2021-05-13 12:36 ` Philippe Mathieu-Daudé [this message]
2021-05-13 13:00 ` Jonathan Cameron
2021-05-13 13:32 ` Philippe Mathieu-Daudé
2021-05-14 2:05 ` Andrew Jeffery
2021-05-14 9:39 ` Jonathan Cameron
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=2d5fdb5f-36d3-c998-ee36-f9d66cea7120@redhat.com \
--to=philmd@redhat.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=alex.bennee@linaro.org \
--cc=andrew@aj.id.au \
--cc=ben.widawsky@intel.com \
--cc=cbrowy@avery-design.com \
--cc=dan.j.williams@intel.com \
--cc=david@redhat.com \
--cc=frasse.iglesias@gmail.com \
--cc=imammedo@redhat.com \
--cc=linuxarm@huawei.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=peterx@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 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).