]> git.proxmox.com Git - mirror_qemu.git/commit - migration/migration.c
migration: provide migrate_caps_check()
authorPeter Xu <peterx@redhat.com>
Tue, 18 Jul 2017 03:39:08 +0000 (11:39 +0800)
committerJuan Quintela <quintela@redhat.com>
Tue, 18 Jul 2017 15:36:25 +0000 (17:36 +0200)
commit4a84214ebe1695405f58e5c6272d63d6084edfa5
treec03fa4792a7f303f75eb0da7e5688de877911300
parentfd198f9002a9e1f070c82b04d3229c18d9a49471
migration: provide migrate_caps_check()

Abstract helper function to check migration capabilities (from the old
qmp_migrate_set_capabilities).  Prepare to be used somewhere else.

There is side effect on the change: when applying the capabilities, we
were skipping the invalid ones, but still applying the valid ones (if
they are provided in the same QMP request). After this refactoring,
we'll ignore all the capabilities if we detected invalid setup along the
way. However, I don't think it is a problem since general users should
not provide anything invalid after all.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1500349150-13240-9-git-send-email-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c