virtio-pci: fix memory MR cleanup for modern
commit27462695cde2a2208b1ff8074c2e917b8203590b
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jul 2015 08:06:17 +0000 (27 11:06 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jul 2015 15:11:53 +0000 (27 18:11 +0300)
treef936457fe780757365ae084e9c24f386c1d9942d
parent09999a5f7fc8e3636feda4358a79a25a09467594
virtio-pci: fix memory MR cleanup for modern

Each memory_region_add_subregion must be paired with
memory_region_del_subregion.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/virtio-pci.c