hw: vfio: drop TYPE_FOO MACRO in VMStateDescription
authorLi Qiang <liq3ea@163.com>
Tue, 21 May 2019 15:15:41 +0000 (08:15 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 22 May 2019 15:35:27 +0000 (17:35 +0200)
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: Li Qiang <liq3ea@163.com>
Message-Id: <20190521151543.92274-3-liq3ea@163.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/vfio/amd-xgbe.c
hw/vfio/ap.c
hw/vfio/calxeda-xgmac.c
hw/vfio/ccw.c
hw/vfio/platform.c

index ee64a3b4a2e45bf51c6c1e70ba59a8d523e1cd68..1b06c0f3ea9ddfc9010864c693a190ef3b906b6b 100644 (file)
@@ -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,
 };
 
index d8b79ebe53ae4499b6c0b5483f0d2b781214fb9e..564751650fc15e94e80cb0a8a71c334131150b32 100644 (file)
@@ -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,
 };
 
index e7767c4b021be5664eb97c204dfb91d86f22e018..6cc608b6cabd43a54ee5d35299d5a4c7444f4ba1 100644 (file)
@@ -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,
 };
 
index 31dd3a2a87b63841c48dac0bc96d7eea7f2e154c..d9e39552e23782e59811d989feca68ca21a125ab 100644 (file)
@@ -468,7 +468,7 @@ static Property vfio_ccw_properties[] = {
 };
 
 static const VMStateDescription vfio_ccw_vmstate = {
-    .name = TYPE_VFIO_CCW,
+    .name = "vfio-ccw",
     .unmigratable = 1,
 };
 
index 398db38f14d9944830360dd06b2340771ecbd589..e59a0234dd878f2991f093d72c35d9bcece06702 100644 (file)
@@ -697,7 +697,7 @@ out:
 }
 
 static const VMStateDescription vfio_platform_vmstate = {
-    .name = TYPE_VFIO_PLATFORM,
+    .name = "vfio-platform",
     .unmigratable = 1,
 };