xemu/hw/nvme
Klaus Jensen 6651f8f2e5 hw/nvme: take a reference on the subsystem on vf realization
Make sure we grab a reference on the subsystem when a VF is realized.
Otherwise, the subsytem will be unrealized automatically when the VFs
are unregistered and unreffed.

This fixes a latent bug but was not exposed until commit 08f6328480
("pcie: Release references of virtual functions"). This was then fixed
(or rather, hidden) by commit c613ad2512 ("pcie_sriov: Do not manually
unrealize"), but that was then reverted (due to other issues) in commit
b0fdaee5d1, exposing the bug yet again.

Cc: qemu-stable@nongnu.org
Fixes: 08f6328480 ("pcie: Release references of virtual functions")
Reviewed-by: Jesper Wendel Devantier <foss@defmacro.it>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
2024-12-03 07:28:27 +01:00
..
Kconfig kconfig: Add NVME to s390x machines 2023-09-12 12:07:16 +02:00
ctrl.c hw/nvme: take a reference on the subsystem on vf realization 2024-12-03 07:28:27 +01:00
dif.c hw/nvme: remove dead code 2024-11-04 19:09:45 +01:00
dif.h hw/nvme: 64-bit pi support 2022-03-03 09:30:21 +01:00
meson.build hw/nvme: Add NVMe NGUID property 2024-03-12 15:48:56 +01:00
nguid.c hw/nvme: Add NVMe NGUID property 2024-03-12 15:48:56 +01:00
ns.c hw/nvme: add NPDAL/NPDGL 2024-11-04 19:09:45 +01:00
nvme.h hw/nvme: i/o cmd set independent namespace data structure 2024-11-04 19:09:45 +01:00
subsys.c hw/nvme: Allocate sec-ctrl-list as a dynamic array 2024-07-11 17:05:37 +02:00
trace-events hw/nvme: i/o cmd set independent namespace data structure 2024-11-04 19:09:45 +01:00
trace.h hw/nvme: move nvme emulation out of hw/block 2021-05-17 09:19:00 +02:00