On 05/09/21 18:29, Peter Maydell wrote:
Last time this came up, we discussed the other option, which is to have memory_region_init assert that the MemoryRegionOps defines at least one valid read and one valid write pointer, so that these bugs get caught quickly rather than only if the guest accesses the device in the wrong way. I tend to think that that is better
I agree, and Prasad had even posted a patch for that, but it failed some qtests and I ended up never checking why that was.
Paolo