pcie_sriov: Reuse SR-IOV VF device instances
commit139610ae67f6ecf92127bb7bf53ac6265b459ec8
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 27 Jun 2024 06:07:55 +0000 (27 15:07 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Jul 2024 22:14:07 +0000 (3 18:14 -0400)
tree776fd6f68a3bd5c92bb244b025ccb9d50078228f
parent77718701157f6ca77ea7a57b536fa0a22f676082
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: <20240627-reuse-v10-6-7ca0b8ed3d9f@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/pci.h
include/hw/pci/pci_device.h
include/hw/pci/pcie_sriov.h