hw/pci-bridge/gen_pcie_rp: Remove GenPCIERootPort::migrate_msix field
The GenPCIERootPort::migrate_msix boolean was only set in the hw_compat_2_9[] array, via the 'x-migrate-msix=false' property. We removed all machines using that array, lets remove that property and all the code around it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250501210456.89071-18-philmd@linaro.org> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260225092024.794595-15-thuth@redhat.com>
Philippe Mathieu-Daudé committed
Feb 25, 2026 at 10:20 UTC
8960a54939650f6bea9255527ad1ad45f79c0883
1 file changed
+2
-14
hw/pci-bridge/gen_pcie_root_port.c
+2
-14
@@ -35,8 +35,6 @@ struct GenPCIERootPort {
35
PCIESlot parent_obj;
36
/*< public >*/
37
38
- bool migrate_msix;
39
-
38
/* additional resources to reserve */
39
PCIResReserve res_reserve;
40
};
@@ -66,13 +64,6 @@ static void gen_rp_interrupts_uninit(PCIDevice *d)
64
msix_uninit_exclusive_bar(d);
65
}
66
69
-static bool gen_rp_test_migrate_msix(void *opaque, int version_id)
70
-{
71
- GenPCIERootPort *rp = opaque;
72
-
73
- return rp->migrate_msix;
74
-}
75
-
67
static void gen_rp_realize(DeviceState *dev, Error **errp)
68
{
69
PCIDevice *d = PCI_DEVICE(dev);
@@ -121,16 +112,13 @@ static const VMStateDescription vmstate_rp_dev = {
112
VMSTATE_PCI_DEVICE(parent_obj.parent_obj.parent_obj, PCIESlot),
113
VMSTATE_STRUCT(parent_obj.parent_obj.parent_obj.exp.aer_log,
114
PCIESlot, 0, vmstate_pcie_aer_log, PCIEAERLog),
124
- VMSTATE_MSIX_TEST(parent_obj.parent_obj.parent_obj.parent_obj,
125
- GenPCIERootPort,
126
- gen_rp_test_migrate_msix),
115
+ VMSTATE_MSIX(parent_obj.parent_obj.parent_obj.parent_obj,
116
+ GenPCIERootPort),
117
VMSTATE_END_OF_LIST()
118
}
119
};
120
121
static const Property gen_rp_props[] = {
132
- DEFINE_PROP_BOOL("x-migrate-msix", GenPCIERootPort,
133
- migrate_msix, true),
122
DEFINE_PROP_UINT32("bus-reserve", GenPCIERootPort,
123
res_reserve.bus, -1),
124
DEFINE_PROP_SIZE("io-reserve", GenPCIERootPort,