aboutsummaryrefslogtreecommitdiff
path: root/qemu-keymap.c
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2024-11-11 12:14:49 +0100
committerKlaus Jensen <k.jensen@samsung.com>2024-12-03 07:28:27 +0100
commit6651f8f2e5051f6750c2534ab3151339b3c476a2 (patch)
tree847878eb39f66315fc5025981383b2db0ac308b4 /qemu-keymap.c
parente85987786d248dd2792944e703ed4d31edbfbc54 (diff)
downloadqemu-6651f8f2e5051f6750c2534ab3151339b3c476a2.zip
qemu-6651f8f2e5051f6750c2534ab3151339b3c476a2.tar.gz
qemu-6651f8f2e5051f6750c2534ab3151339b3c476a2.tar.bz2
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 08f632848008 ("pcie: Release references of virtual functions"). This was then fixed (or rather, hidden) by commit c613ad25125b ("pcie_sriov: Do not manually unrealize"), but that was then reverted (due to other issues) in commit b0fdaee5d1ed, exposing the bug yet again. Cc: qemu-stable@nongnu.org Fixes: 08f632848008 ("pcie: Release references of virtual functions") Reviewed-by: Jesper Wendel Devantier <foss@defmacro.it> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'qemu-keymap.c')
0 files changed, 0 insertions, 0 deletions