OSDN Git Service

hw/core: Let devices own the MemoryRegion they create
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 22 Feb 2020 17:11:51 +0000 (18:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Mar 2020 14:18:48 +0000 (15:18 +0100)
commitde95af9967a777263894165e3ba576581a82da4e
tree1f1eeb852d2b5f0ebfa7582969e6b442efbb595f
parent84969111e656eb594ac123a23aa120ff5e157ee4
hw/core: Let devices own the MemoryRegion they create

Avoid orphan memory regions being added in the /unattached QOM
container.

This commit was produced with the Coccinelle script
scripts/coccinelle/memory-region-housekeeping.cocci.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/core/platform-bus.c