On 10/20/19 3:56 PM, Philippe Mathieu-Daudé wrote: > All the memory_region_allocate_system_memory() pass a MachineState > argument. Add an assertion to ensure the new boards/machines added > set this argument, so all system memory object have the machine as > its QOM owner. > > Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> > --- > hw/core/numa.c | 4 +--- > include/hw/boards.h | 2 +- > 2 files changed, 2 insertions(+), 4 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> It would be a good idea to add __attribute__((nonnull(x,y,z))) as well, but since we don't currently have any markup for that in qemu, that can go in a separate patch set. r~