mbox series

[RFC,0/2] exec: Fix (too) short device accesses

Message ID 20200517113804.9063-1-f4bug@amsat.org
Headers show
Series exec: Fix (too) short device accesses | expand

Message

Philippe Mathieu-Daudé May 17, 2020, 11:38 a.m. UTC
Something noticed while debugging Alexander's bug report
"Hang with high CPU usage in sdhci_data_transfer":
https://bugs.launchpad.net/qemu/+bug/1878054

The flatview ignores the MemoryRegion minimum access size.

It seems related to a similar issue Julia had with PCI
devices.

Not sure it is safe enough, have performance penalties
and so on, so RFC.

Philippe Mathieu-Daudé (2):
  exec: Let memory_access_size() consider minimum valid access size
  exec: Do not let flatview_read/write_continue do (too) short accesses

 exec.c | 42 +++++++++++++++++++++++++++++++-----------
 1 file changed, 31 insertions(+), 11 deletions(-)