mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2026-08-26 22:23:12 -04:00
hw/nvme: fix msix_uninit with exclusive bar
Commitfa905f65c5introduced 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:fa905f65c5("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>
This commit is contained in:
parent
eb22a06445
commit
9162f10125
1 changed files with 6 additions and 1 deletions
|
|
@ -8904,7 +8904,12 @@ static void nvme_exit(PCIDevice *pci_dev)
|
|||
pcie_sriov_pf_exit(pci_dev);
|
||||
}
|
||||
|
||||
msix_uninit(pci_dev, &n->bar0, &n->bar0);
|
||||
if (n->params.msix_exclusive_bar && !pci_is_vf(pci_dev)) {
|
||||
msix_uninit_exclusive_bar(pci_dev);
|
||||
} else {
|
||||
msix_uninit(pci_dev, &n->bar0, &n->bar0);
|
||||
}
|
||||
|
||||
memory_region_del_subregion(&n->bar0, &n->iomem);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue