Re: [PATCH 0/8] hw: Fix some incomplete memory region size

2020-05-31 Thread Peter Maydell
On Sun, 31 May 2020 at 18:38, Philippe Mathieu-Daudé wrote: > > memory_region_set_size() handle the 16 Exabytes limit by > special-casing the UINT64_MAX value. > This is not a problem for the 32-bit maximum, 4 GiB, but > in some places we incorrectly use UINT32_MAX instead of > 4 GiB, and end up

[PATCH 0/8] hw: Fix some incomplete memory region size

2020-05-31 Thread Philippe Mathieu-Daudé
memory_region_set_size() handle the 16 Exabytes limit by special-casing the UINT64_MAX value. This is not a problem for the 32-bit maximum, 4 GiB, but in some places we incorrectly use UINT32_MAX instead of 4 GiB, and end up missing 1 byte in the memory region. This series fixes the cases I