hw/nvme: fix msix_uninit with exclusive bar
authorKlaus Jensen <k.jensen@samsung.com>
Sun, 10 Nov 2024 13:04:27 +0000 (14:04 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 3 Dec 2024 06:28:27 +0000 (07:28 +0100)
commit9162f101257639cc4c7e20f72f77268b1256dd79
tree4ec382ef397cc05785d69b8c5caa312f102dad91
parenteb22a064455aeebc105cc89bf77f48aa18b52938
hw/nvme: fix msix_uninit with exclusive bar

Commit fa905f65c554 introduced a machine compatibility parameter to
enable an exclusive bar for msix. It failed to account for this when
cleaning up. Make sure that if an exclusive bar is enabled, we use the
proper cleanup routine.

Cc: qemu-stable@nongnu.org
Fixes: fa905f65c554 ("hw/nvme: add machine compatibility parameter to enable msix exclusive bar")
Reviewed-by: Jesper Wendel Devantier <foss@defmacro.it>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c