hw/dma: Let devices own the MemoryRegion they create
commita8457764877c7d4070e5369e98d27876470ac6d0
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 22 Feb 2020 17:12:37 +0000 (22 18:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Mar 2020 14:18:49 +0000 (17 15:18 +0100)
tree317c2b908a538836defe7a36e9d2c2ef7b54f930
parentb9fc4f6e6218439684abbae863bbcb2ecef9201e
hw/dma: 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/dma/i8257.c
hw/dma/rc4030.c