[libvirt] [PATCH 1/8] qemu: Use C99 initializers for qemuMigrationParamsTPMap

Jiri Denemark posted 8 patches 32 weeks ago

[libvirt] [PATCH 1/8] qemu: Use C99 initializers for qemuMigrationParamsTPMap

Posted by Jiri Denemark 32 weeks ago
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 src/qemu/qemu_migration_params.c | 36 ++++++++++++++++----------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/qemu/qemu_migration_params.c b/src/qemu/qemu_migration_params.c
index e112e790c2..658e785059 100644
--- a/src/qemu/qemu_migration_params.c
+++ b/src/qemu/qemu_migration_params.c
@@ -154,29 +154,29 @@ static const qemuMigrationParamsFlagMapItem qemuMigrationParamsFlagMap[] = {
 /* Translation from VIR_MIGRATE_PARAM_* typed parameters to
  * qemuMigrationParams. */
 static const qemuMigrationParamsTPMapItem qemuMigrationParamsTPMap[] = {
-    {VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIAL,
-     QEMU_MIGRATION_PARAM_THROTTLE_INITIAL,
-     QEMU_MIGRATION_SOURCE},
+    {.typedParam = VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIAL,
+     .param = QEMU_MIGRATION_PARAM_THROTTLE_INITIAL,
+     .party = QEMU_MIGRATION_SOURCE},
 
-    {VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT,
-     QEMU_MIGRATION_PARAM_THROTTLE_INCREMENT,
-     QEMU_MIGRATION_SOURCE},
+    {.typedParam = VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT,
+     .param = QEMU_MIGRATION_PARAM_THROTTLE_INCREMENT,
+     .party = QEMU_MIGRATION_SOURCE},
 
-    {VIR_MIGRATE_PARAM_COMPRESSION_MT_LEVEL,
-     QEMU_MIGRATION_PARAM_COMPRESS_LEVEL,
-     QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
+    {.typedParam = VIR_MIGRATE_PARAM_COMPRESSION_MT_LEVEL,
+     .param = QEMU_MIGRATION_PARAM_COMPRESS_LEVEL,
+     .party = QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
 
-    {VIR_MIGRATE_PARAM_COMPRESSION_MT_THREADS,
-     QEMU_MIGRATION_PARAM_COMPRESS_THREADS,
-     QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
+    {.typedParam = VIR_MIGRATE_PARAM_COMPRESSION_MT_THREADS,
+     .param = QEMU_MIGRATION_PARAM_COMPRESS_THREADS,
+     .party = QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
 
-    {VIR_MIGRATE_PARAM_COMPRESSION_MT_DTHREADS,
-     QEMU_MIGRATION_PARAM_DECOMPRESS_THREADS,
-     QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
+    {.typedParam = VIR_MIGRATE_PARAM_COMPRESSION_MT_DTHREADS,
+     .param = QEMU_MIGRATION_PARAM_DECOMPRESS_THREADS,
+     .party = QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
 
-    {VIR_MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHE,
-     QEMU_MIGRATION_PARAM_XBZRLE_CACHE_SIZE,
-     QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
+    {.typedParam = VIR_MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHE,
+     .param = QEMU_MIGRATION_PARAM_XBZRLE_CACHE_SIZE,
+     .party = QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
 };
 
 static const qemuMigrationParamType qemuMigrationParamTypes[] = {
-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 1/8] qemu: Use C99 initializers for qemuMigrationParamsTPMap

Posted by Ján Tomko 32 weeks ago
On Tue, Feb 05, 2019 at 04:23:04PM +0100, Jiri Denemark wrote:
>Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
>---
> src/qemu/qemu_migration_params.c | 36 ++++++++++++++++----------------
> 1 file changed, 18 insertions(+), 18 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list