qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] MemoryRegionOps' {min,max}_access_size fields


From: Jan Beulich
Subject: Re: [Qemu-devel] MemoryRegionOps' {min,max}_access_size fields
Date: Mon, 13 Apr 2015 09:47:26 +0100

>>> On 30.03.15 at 11:49, <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]