mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 12:32:05 -06:00
Revert "pcie_sriov: Register VFs after migration"
This reverts commit 107a64b9a3
.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
558452512f
commit
b9ba817694
3 changed files with 0 additions and 16 deletions
|
@ -733,17 +733,10 @@ static bool migrate_is_not_pcie(void *opaque, int version_id)
|
||||||
return !pci_is_express((PCIDevice *)opaque);
|
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 = {
|
const VMStateDescription vmstate_pci_device = {
|
||||||
.name = "PCIDevice",
|
.name = "PCIDevice",
|
||||||
.version_id = 2,
|
.version_id = 2,
|
||||||
.minimum_version_id = 1,
|
.minimum_version_id = 1,
|
||||||
.post_load = pci_post_load,
|
|
||||||
.fields = (const VMStateField[]) {
|
.fields = (const VMStateField[]) {
|
||||||
VMSTATE_INT32_POSITIVE_LE(version_id, PCIDevice),
|
VMSTATE_INT32_POSITIVE_LE(version_id, PCIDevice),
|
||||||
VMSTATE_BUFFER_UNSAFE_INFO_TEST(config, PCIDevice,
|
VMSTATE_BUFFER_UNSAFE_INFO_TEST(config, PCIDevice,
|
||||||
|
|
|
@ -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 */
|
/* Reset SR/IOV */
|
||||||
void pcie_sriov_pf_reset(PCIDevice *dev)
|
void pcie_sriov_pf_reset(PCIDevice *dev)
|
||||||
|
|
|
@ -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,
|
void pcie_sriov_config_write(PCIDevice *dev, uint32_t address,
|
||||||
uint32_t val, int len);
|
uint32_t val, int len);
|
||||||
|
|
||||||
void pcie_sriov_pf_post_load(PCIDevice *dev);
|
|
||||||
|
|
||||||
/* Reset SR/IOV */
|
/* Reset SR/IOV */
|
||||||
void pcie_sriov_pf_reset(PCIDevice *dev);
|
void pcie_sriov_pf_reset(PCIDevice *dev);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue