mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
spice: adding seamless-migration option to the command line
The seamless-migration flag is required in order to identify whether libvirt supports the new QEVENT_SPICE_MIGRATE_COMPLETED or not (by default the flag is off). New libvirt versions that wait for QEVENT_SPICE_MIGRATE_COMPLETED should turn on this flag. When this flag is off, spice fallbacks to its old migration method, which can result in data loss. Signed-off-by: Yonit Halperin <yhalperi@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
61c4efe2cb
commit
8c9570530c
3 changed files with 13 additions and 0 deletions
|
@ -585,6 +585,9 @@ void qemu_spice_init(void)
|
|||
int port, tls_port, len, addr_flags;
|
||||
spice_image_compression_t compression;
|
||||
spice_wan_compression_t wan_compr;
|
||||
#if SPICE_SERVER_VERSION >= 0x000b02 /* 0.11.2 */
|
||||
bool seamless_migration;
|
||||
#endif
|
||||
|
||||
qemu_thread_get_self(&me);
|
||||
|
||||
|
@ -728,6 +731,10 @@ void qemu_spice_init(void)
|
|||
spice_server_set_uuid(spice_server, qemu_uuid);
|
||||
#endif
|
||||
|
||||
#if SPICE_SERVER_VERSION >= 0x000b02 /* 0.11.2 */
|
||||
seamless_migration = qemu_opt_get_bool(opts, "seamless-migration", 0);
|
||||
spice_server_set_seamless_migration(spice_server, seamless_migration);
|
||||
#endif
|
||||
if (0 != spice_server_init(spice_server, &core_interface)) {
|
||||
error_report("failed to initialize spice server");
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue