On 16/10/2017 11:41, David Hildenbrand wrote: > log_start might be called by memory.c just before registering the > section. So we can actually get a log_start without a region_add, which > we can silently ignore.
This is really a bug in memory.c, I think. When you put together everything as a single patch series, can you include the memory.c change instead, and drop this reference in the commit message and the kvm-all.c comment? Thanks, Paolo > This makes current KVM code trigger an assertion > ("kvm_section_update_flags: error finding slot"). > > Also, if we want to trap every access to a section, we might not have a > slot. So let's just tolerate if we don't have a slot.