Skip to content

spice migration interface v2 (RHBZ 737921)

Yonit Halperin qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2spice: turn client_migrate_info to asynchmp-commands.hx monitor.c qmp-commands.hx +2 more+26 -100 replies
2/2spice: support the new migration interface (spice 0.8.3)ui/spice-core.c+55 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] spice migration interface v2 (RHBZ 737921)

Same as the previous series with a small fix to
allow compliation without Spice disabled.

Yonit
------------------------------------

Spice client is required to connect to the migration target before/as migration starts. Previously, it connected upon migration completion, however, the ticket was set in the beginning, thus when migration time was > ticket_expiration_time, spice failed to connect to the target.

Since the migration target is blocked after migration starts, we execute spice-client connection to the target before migration, upon client_migrate_info. We wait till the client is connected to the target, or till a timeout occurs. In order to not block the iothread, this patch turns client_migrate_info to
asynchronous.

In addition, we changed the spice api:
(1) client_migrate_info need to call spice_server_migrate_connect
(2) spice_server_migrate_start/end need to be called upon migration start/end

** spice_server_start and the migrate_end_complete callback, were added for
future use, in case we implement a real seamless spice migration

Yonit Halperin (2):
spice: turn client_migrate_info to async
spice: support the new migration interface (spice 0.8.3)

 hmp-commands.hx |    3 +-
 monitor.c       |    6 +++-
 qmp-commands.hx |    3 +-
 ui/qemu-spice.h |   14 +++++++++--
 ui/spice-core.c |   66 +++++++++++++++++++++++++++++++++++++++++++++++++++---
 5 files changed, 81 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.6.4