vfio: Destroy memory regions
commit7c4228b4771acddcb8815079bc116007cec8a1ff
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 15 Jan 2014 17:07:26 +0000 (15 10:07 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 15 Jan 2014 17:07:26 +0000 (15 10:07 -0700)
treec830fcd65274bdd55a7e44f7b5d444df292ed004
parent1cf892ca2689c84960b4ce4d2723b6bee453711c
vfio: Destroy memory regions

Somehow this has been lurking for a while; we remove our subregions
from the base BAR and VGA region mappings, but we don't destroy them,
creating a leak and more serious problems when we try to migrate after
removing these devices.  Add the trivial bit of final cleanup to
remove these entirely.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/misc/vfio.c