pcie_sriov: Reuse SR-IOV VF device instances
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 16 Jan 2025 09:00:59 +0000 (18:00 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 20 Feb 2025 23:23:19 +0000 (18:23 -0500)
commitcab1398a60eb0cb2d2d1998c9b46aaa5e0bf3ee8
treec826783719b4f760bf5e40868c6c7672df85c380
parent3391d68e906114c364c173c7f3f7389d47d15a11
pcie_sriov: Reuse SR-IOV VF device instances

Disable SR-IOV VF devices by reusing code to power down PCI devices
instead of removing them when the guest requests to disable VFs. This
allows to realize devices and report VF realization errors at PF
realization time.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20250116-reuse-v20-8-7cb370606368@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c
hw/pci/pcie_sriov.c
include/hw/pci/pcie_sriov.h