libvirt/src/qemu
Jiri Denemark d384a88b30 qemu: Refactor qemuMigrationParams
Adding support for new migration parameter requires a lot of places to
be changed (most likely by copy&paste engineering): new variables to
store the parameter value and the associated *_set bool, JSON formatter
and parser, XML formatter and parser (to be added soon), and the actual
code to set the parameter. It's pretty easy to forget about some of the
places which need to be updated and end up with incorrect support. The
goal of this patch is to let most of the places do their job without any
modifications when new parameters are added.

To achieve the goal, a new qemuMigrationParam enum is introduced and all
parameters are stored in an array indexed by the items of this enum.
This will also allow us to automatically set the migration parameters
which directly correspond to libvirt's typed parameters accepted by
virDomainMigrate* APIs.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2018-04-17 10:46:23 +02:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug Revert "qemu: Expose rx/tx_queue_size in qemu.conf too" 2018-02-12 14:56:29 +00:00
Makefile.inc.am qemu: Export qemuMigrationParams{To,From}JSON for tests 2018-04-17 10:46:23 +02:00
MIGRATION.txt
qemu_agent.c json: Replace access to virJSONValue->type by virJSONValueGetType 2018-04-03 13:34:33 +02:00
qemu_agent.h
qemu_alias.c qemu: Don't assign alias to disabled balloon device 2018-03-19 21:22:43 +01:00
qemu_alias.h qemu: different declarations for the same method 2018-03-12 11:02:09 +01:00
qemu_block.c util: json: Fix freeing of objects appended to virJSONValue 2018-04-03 13:34:33 +02:00
qemu_block.h
qemu_blockjob.c
qemu_blockjob.h
qemu_capabilities.c qemu: deprecate QEMU_CAPS_DRIVE_CACHE_UNSAFE 2018-04-16 20:32:26 +02:00
qemu_capabilities.h qemu: deprecate QEMU_CAPS_DRIVE_CACHE_UNSAFE 2018-04-16 20:32:26 +02:00
qemu_capspriv.h Force QMP capability probing 2018-04-10 15:16:23 +02:00
qemu_cgroup.c qemu_cgroup: Handle device mapper targets properly 2018-04-05 16:52:55 +02:00
qemu_cgroup.h
qemu_command.c qemu: deprecate QEMU_CAPS_DRIVE_CACHE_UNSAFE 2018-04-16 20:32:26 +02:00
qemu_command.h Revert "qemu: Expose rx/tx_queue_size in qemu.conf too" 2018-02-12 14:56:29 +00:00
qemu_conf.c conf: stop passing virConnectPtr into virDomainDiskTranslateSourcePool 2018-02-19 11:11:47 +00:00
qemu_conf.h port allocator: make port range constant object 2018-02-22 13:52:45 +01:00
qemu_domain_address.c conf: Add virDomainPCIAddressSet.isPCIeToPCIBridgeSupported 2018-04-06 14:12:19 +02:00
qemu_domain_address.h
qemu_domain.c qemu: Drop qemuMigrationParamsCheckTLSCreds 2018-04-17 10:46:23 +02:00
qemu_domain.h qemu: Drop qemuMigrationParamsCheckTLSCreds 2018-04-17 10:46:23 +02:00
qemu_driver.c qemu: Limit usage of qemuMonitorMigrationParams 2018-04-17 10:46:23 +02:00
qemu_driver.h
qemu_hostdev.c qemu: hostdev: Fix the error on VM start with an mdev when IOMMU is off 2018-03-19 11:14:40 +01:00
qemu_hostdev.h
qemu_hotplug.c qemu: deprecate QEMU_CAPS_VHOST_NET 2018-04-16 15:00:26 +02:00
qemu_hotplug.h qemu: don't pass virConnectPtr around for secrets 2018-02-19 11:11:47 +00:00
qemu_hotplugpriv.h
qemu_interface.c qemu: deprecate QEMU_CAPS_VHOST_NET 2018-04-16 15:00:26 +02:00
qemu_interface.h qemu: deprecate QEMU_CAPS_VHOST_NET 2018-04-16 15:00:26 +02:00
qemu_migration_cookie.c qemu: fix memory leak of @vporttype during migration. 2018-02-28 07:56:17 +01:00
qemu_migration_cookie.h
qemu_migration_params.c qemu: Refactor qemuMigrationParams 2018-04-17 10:46:23 +02:00
qemu_migration_params.h qemu: Refactor qemuMigrationParams 2018-04-17 10:46:23 +02:00
qemu_migration_paramspriv.h qemu: Export qemuMigrationParams{To,From}JSON for tests 2018-04-17 10:46:23 +02:00
qemu_migration.c qemu: Replace qemuMigrationAnyCompressionDump 2018-04-17 10:46:23 +02:00
qemu_migration.h qemu: Replace qemuMigrationAnyCompressionDump 2018-04-17 10:46:23 +02:00
qemu_monitor_json.c qemu: Move migration parameters JSON formatting 2018-04-17 10:46:23 +02:00
qemu_monitor_json.h qemu: Move migration parameters JSON formatting 2018-04-17 10:46:23 +02:00
qemu_monitor_text.c qemu: stop passing virConnectPtr into qemuMonitorStartCPUs 2018-02-19 11:11:46 +00:00
qemu_monitor_text.h qemu: stop passing virConnectPtr into qemuMonitorStartCPUs 2018-02-19 11:11:46 +00:00
qemu_monitor.c qemu: Move migration parameters JSON formatting 2018-04-17 10:46:23 +02:00
qemu_monitor.h qemu: Move qemuMonitorMigrationParams structure 2018-04-17 10:46:23 +02:00
qemu_parse_command.c qemu: Use virDomainChrSourceDefNew for monConfig 2018-04-10 08:11:09 -04:00
qemu_parse_command.h
qemu_process.c qemu: Reset all migration parameters 2018-04-17 10:46:23 +02:00
qemu_process.h qemu: remove virConnectPtr from some more startup code paths 2018-02-19 11:11:47 +00:00
qemu_processpriv.h
qemu_qapi.c qemu: qapi: Return correct entry in virQEMUQAPISchemaTraverse 2018-03-23 14:52:07 +01:00
qemu_qapi.h qemu: monitor: Move processing of QMP schema to the new file 2018-03-23 14:52:07 +01:00
qemu_security.c
qemu_security.h
qemu.conf Replace QEmu with QEMU 2018-04-01 17:42:29 +02:00
test_libvirtd_qemu.aug.in Revert "qemu: Expose rx/tx_queue_size in qemu.conf too" 2018-02-12 14:56:29 +00:00
THREADS.txt