Commit da56e330 authored by Li Qiang's avatar Li Qiang Committed by Laurent Vivier
Browse files

hw: vfio: drop TYPE_FOO MACRO in VMStateDescription

It's recommended that VMStateDescription names are decoupled from QOM
type names as the latter may freely change without consideration of
migration compatibility.

Link: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg02175.html



CC: qemu-trivial@nongnu.org
Signed-off-by: default avatarLi Qiang <liq3ea@163.com>
Message-Id: <20190521151543.92274-3-liq3ea@163.com>
Acked-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent 0c0c8f8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ static void amd_xgbe_realize(DeviceState *dev, Error **errp)
}

static const VMStateDescription vfio_platform_amd_xgbe_vmstate = {
    .name = TYPE_VFIO_AMD_XGBE,
    .name = "vfio-amd-xgbe",
    .unmigratable = 1,
};

+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ static void vfio_ap_reset(DeviceState *dev)
}

static const VMStateDescription vfio_ap_vmstate = {
    .name = VFIO_AP_DEVICE_TYPE,
    .name = "vfio-ap",
    .unmigratable = 1,
};

+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ static void calxeda_xgmac_realize(DeviceState *dev, Error **errp)
}

static const VMStateDescription vfio_platform_calxeda_xgmac_vmstate = {
    .name = TYPE_VFIO_CALXEDA_XGMAC,
    .name = "vfio-calxeda-xgmac",
    .unmigratable = 1,
};

+1 −1
Original line number Diff line number Diff line
@@ -468,7 +468,7 @@ static Property vfio_ccw_properties[] = {
};

static const VMStateDescription vfio_ccw_vmstate = {
    .name = TYPE_VFIO_CCW,
    .name = "vfio-ccw",
    .unmigratable = 1,
};

+1 −1
Original line number Diff line number Diff line
@@ -697,7 +697,7 @@ out:
}

static const VMStateDescription vfio_platform_vmstate = {
    .name = TYPE_VFIO_PLATFORM,
    .name = "vfio-platform",
    .unmigratable = 1,
};