]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
Revert "pcie_sriov: Register VFs after migration"
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Aug 2024 07:44:38 +0000 (03:44 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Aug 2024 08:32:00 +0000 (04:32 -0400)
This reverts commit 107a64b9a360cf5ca046852bc03334f7a9f22aef.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c
hw/pci/pcie_sriov.c
include/hw/pci/pcie_sriov.h

index 4c7be529511096eabd0bbebf0c84a0bcbe3ac32a..5c0050e1786a7eb057935f92992211b7267690e8 100644 (file)
@@ -733,17 +733,10 @@ static bool migrate_is_not_pcie(void *opaque, int version_id)
     return !pci_is_express((PCIDevice *)opaque);
 }
 
-static int pci_post_load(void *opaque, int version_id)
-{
-    pcie_sriov_pf_post_load(opaque);
-    return 0;
-}
-
 const VMStateDescription vmstate_pci_device = {
     .name = "PCIDevice",
     .version_id = 2,
     .minimum_version_id = 1,
-    .post_load = pci_post_load,
     .fields = (const VMStateField[]) {
         VMSTATE_INT32_POSITIVE_LE(version_id, PCIDevice),
         VMSTATE_BUFFER_UNSAFE_INFO_TEST(config, PCIDevice,
index 56523ab4e8336d0edebee1449524b98e561c7f26..fae6acea4acb658f5aa1b3e0e516af8790488115 100644 (file)
@@ -252,13 +252,6 @@ void pcie_sriov_config_write(PCIDevice *dev, uint32_t address,
     }
 }
 
-void pcie_sriov_pf_post_load(PCIDevice *dev)
-{
-    if (dev->exp.sriov_cap) {
-        register_vfs(dev);
-    }
-}
-
 
 /* Reset SR/IOV */
 void pcie_sriov_pf_reset(PCIDevice *dev)
index c5d2d318d330a2c0d482e1e4c3729c2bcebbb21f..5148c5b77dd1f9613cb905b2608fe267273224bb 100644 (file)
@@ -57,8 +57,6 @@ void pcie_sriov_pf_add_sup_pgsize(PCIDevice *dev, uint16_t opt_sup_pgsize);
 void pcie_sriov_config_write(PCIDevice *dev, uint32_t address,
                              uint32_t val, int len);
 
-void pcie_sriov_pf_post_load(PCIDevice *dev);
-
 /* Reset SR/IOV */
 void pcie_sriov_pf_reset(PCIDevice *dev);