Klaus Jensen 5351fb7cb2 hw/block/nvme: fix invalid msix exclusive uninit
Commit 1901b4967c3f changed the nvme device from using a bar exclusive
for MSI-x to sharing it on bar0.

Unfortunately, the msix_uninit_exclusive_bar() call remains in
nvme_exit() which causes havoc when the device is removed with, say,
device_del. Fix this.

Additionally, a subregion is added but it is not removed on exit which
causes a reference to linger and the drive to never be unlocked.

Fixes: 1901b4967c3f ("hw/block/nvme: move msix table and pba to BAR 0")
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2021-04-26 14:55:50 +01:00
..
2020-12-10 12:15:18 -05:00
2021-04-06 16:04:33 +01:00
2021-03-10 13:57:31 +00:00
2021-03-18 09:22:55 +00:00
2021-03-19 18:01:17 +00:00
2021-01-08 15:13:38 +00:00
2021-03-15 21:03:06 +01:00
2020-12-10 12:15:08 -05:00
2020-08-21 06:30:25 -04:00
2021-04-06 07:11:36 -04:00
2020-08-27 14:04:55 -04:00
2020-12-10 12:15:08 -05:00
2021-03-18 09:22:55 +00:00
2020-08-21 06:30:33 -04:00
2021-02-05 08:52:58 -05:00
2020-08-21 06:30:33 -04:00