qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] softmmu/memory: Validate {read,write}_with_attrs before call


From: Paolo Bonzini
Subject: Re: [PATCH] softmmu/memory: Validate {read,write}_with_attrs before calling
Date: Mon, 6 Sep 2021 08:51:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

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




reply via email to

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