hw/pcie: fix the generic pcie root port to support migration
PATCH 1/1 hw/pcie: fix the generic pcie root port to support migration
Add msix state to pcie-root-ports's vmstate
in order to support migration.
--- hw/pci-bridge/gen_pcie_root_port.c | 1 + 1 file changed, 1 insertion(+)
hw/pci-bridge/gen_pcie_root_port.c +1 -0
@@ -54,6 +54,7 @@ static const VMStateDescription vmstate_rp_dev = {VMSTATE_PCI_DEVICE (parent_obj.parent_obj.parent_obj, PCIESlot),VMSTATE_STRUCT (parent_obj.parent_obj.parent_obj.exp.aer_log, PCIESlot,0 , vmstate_pcie_aer_log, PCIEAERLog), +VMSTATE_MSIX (parent_obj.parent_obj, PCIEPort), VMSTATE_END_OF_LIST() } };
Signature · 1 line
2.9.4
Quoted 13 lines · * Marcel Apfelbaum ([email protected]) wrote:
Add msix state to pcie-root-ports's vmstate
in order to support migration.Signed-off-by Marcel Apfelbaum <[email protected]>--- hw/pci-bridge/gen_pcie_root_port.c | 1 + 1 file changed, 1 insertion(+)hw/pci-bridge/gen_pcie_root_port.c +0
-0
hw/pci-bridge/gen_pcie_root_port.c static const VMStateDescription vmstate_rp_dev = { · line 57
Quoted 4 lines
hw/pci-bridge/gen_pcie_root_port.c +1
-0@@ -54,6 +54,7 @@ static const VMStateDescription vmstate_rp_dev = {VMSTATE_PCI_DEVICE (parent_obj.parent_obj.parent_obj, PCIESlot),VMSTATE_STRUCT (parent_obj.parent_obj.parent_obj.exp.aer_log, PCIESlot,0 , vmstate_pcie_aer_log, PCIEAERLog), + VMSTATE_MSIX(parent_obj.parent_obj, PCIEPort),
That will cause a failure of migration from/to 2.9. Doesn't that need to be tied to the machine-type in a subsection?
Dave
Quoted 6 lines
hw/pci-bridge/gen_pcie_root_port.c +0
-0VMSTATE_END_OF_LIST() } };Signature · 1 line
2.9.4
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 9 lines · Dr. David Alan Gilbert
Quoted 8 lines · * Marcel Apfelbaum ([email protected]) wrote:
Add msix state to pcie-root-ports's vmstate
in order to support migration.Signed-off-by Marcel Apfelbaum <[email protected]>--- hw/pci-bridge/gen_pcie_root_port.c | 1 + 1 file changed, 1 insertion(+)
Quoted 13 lines
hw/pci-bridge/gen_pcie_root_port.c static const VMStateDescription vmstate_rp_dev = { · line 57
Quoted 9 lines
hw/pci-bridge/gen_pcie_root_port.c +1
-0@@ -54,6 +54,7 @@ static const VMStateDescription vmstate_rp_dev = {VMSTATE_PCI_DEVICE (parent_obj.parent_obj.parent_obj, PCIESlot),VMSTATE_STRUCT (parent_obj.parent_obj.parent_obj.exp.aer_log, PCIESlot,0 , vmstate_pcie_aer_log, PCIEAERLog), + VMSTATE_MSIX(parent_obj.parent_obj, PCIEPort),That will cause a failure of migration from/to 2.9. Doesn't that need to be tied to the machine-type in a subsection?
Hi Dave,
Thanks for the review,
I'll repost with the fix.
Thanks,
Marcel
Quoted 11 lines
Dave
Quoted 6 lines
hw/pci-bridge/gen_pcie_root_port.c +0
-0VMSTATE_END_OF_LIST() } };Signature · 1 line
2.9.4--
Dr. David Alan Gilbert / [email protected] / Manchester, UK