memory: accept mismatching sizes in memory_region_access_valid
commita014ed07bd5a93950fe12c88ed5faf188a22ee01
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2013 15:48:52 +0000 (24 17:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 May 2013 14:27:19 +0000 (29 16:27 +0200)
treeae363638e88c6f77b4e301610ac7d3207ab9dc0e
parent51644ab70ba125cb9545702d64890743d75b444b
memory: accept mismatching sizes in memory_region_access_valid

The memory API is able to use smaller/wider accesses than requested,
match that in memory_region_access_valid.  Of course, the accepts
callback is still free to reject those accesses.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c