* [Qemu-devel] [PULL 0/2] spice patch queue @ 2014-05-08 8:51 Gerd Hoffmann 2014-05-08 8:51 ` [Qemu-devel] [PULL 1/2] spice: fix "info spice" Gerd Hoffmann ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Gerd Hoffmann @ 2014-05-08 8:51 UTC (permalink / raw) To: qemu-devel; +Cc: Gerd Hoffmann Hi, Here comes the spice patch queue with two little bugfixes. please pull, Gerd The following changes since commit ff788b6fe67f694666781f821c1af812e8c7999b: Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-05-07' into staging (2014-05-07 18:38:39 +0100) are available in the git repository at: git://anongit.freedesktop.org/spice/qemu tags/pull-spice-7 for you to fetch changes up to a76a2f729aae21c45c7e9eef8d1d80e94d1cc930: spice: fix libvirt snapshots (2014-05-08 10:45:54 +0200) ---------------------------------------------------------------- spice: small fixes ---------------------------------------------------------------- Gerd Hoffmann (2): spice: fix "info spice" spice: fix libvirt snapshots ui/spice-core.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PULL 1/2] spice: fix "info spice" 2014-05-08 8:51 [Qemu-devel] [PULL 0/2] spice patch queue Gerd Hoffmann @ 2014-05-08 8:51 ` Gerd Hoffmann 2014-05-08 8:51 ` [Qemu-devel] [PULL 2/2] spice: fix libvirt snapshots Gerd Hoffmann 2014-05-08 11:12 ` [Qemu-devel] [PULL 0/2] spice patch queue Peter Maydell 2 siblings, 0 replies; 4+ messages in thread From: Gerd Hoffmann @ 2014-05-08 8:51 UTC (permalink / raw) To: qemu-devel; +Cc: Gerd Hoffmann, Anthony Liguori In case no listening address was specified, "info spice" reports "0.0.0.0" as address. Which is incorrect in case spice is listening on ipv6. Replace it by a wildcard "*" to indicate it is not limited to a specific address. Note: Being more specific is not possible without extending the spice-server api. The socket is handled by spice-server not qemu, so qemu can't easily figure the actual socket address. Reported-by: David Jaša <djasa@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> --- ui/spice-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 4cce3b3..6825579 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -532,7 +532,7 @@ SpiceInfo *qmp_query_spice(Error **errp) info->auth = g_strdup(auth); info->has_host = true; - info->host = g_strdup(addr ? addr : "0.0.0.0"); + info->host = g_strdup(addr ? addr : "*"); info->has_compiled_version = true; major = (SPICE_SERVER_VERSION & 0xff0000) >> 16; -- 1.8.3.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PULL 2/2] spice: fix libvirt snapshots 2014-05-08 8:51 [Qemu-devel] [PULL 0/2] spice patch queue Gerd Hoffmann 2014-05-08 8:51 ` [Qemu-devel] [PULL 1/2] spice: fix "info spice" Gerd Hoffmann @ 2014-05-08 8:51 ` Gerd Hoffmann 2014-05-08 11:12 ` [Qemu-devel] [PULL 0/2] spice patch queue Peter Maydell 2 siblings, 0 replies; 4+ messages in thread From: Gerd Hoffmann @ 2014-05-08 8:51 UTC (permalink / raw) To: qemu-devel; +Cc: Gerd Hoffmann, Anthony Liguori Only notify spice-server about migration events in case we got target host information beforehand. So we kick the seamless spice client migration only in case a actual live migration happens, not when libvirt uses live-migration-to-file for snapshotting. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> --- ui/spice-core.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/spice-core.c b/ui/spice-core.c index 6825579..d10818a 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -48,6 +48,7 @@ static char *auth_passwd; static time_t auth_expires = TIME_MAX; static int spice_migration_completed; static int spice_display_is_running; +static int spice_have_target_host; int using_spice = 0; static QemuThread me; @@ -564,12 +565,18 @@ static void migration_state_notifier(Notifier *notifier, void *data) { MigrationState *s = data; + if (!spice_have_target_host) { + return; + } + if (migration_in_setup(s)) { spice_server_migrate_start(spice_server); } else if (migration_has_finished(s)) { spice_server_migrate_end(spice_server, true); + spice_have_target_host = false; } else if (migration_has_failed(s)) { spice_server_migrate_end(spice_server, false); + spice_have_target_host = false; } } @@ -583,6 +590,7 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port, spice_migrate.connect_complete.opaque = opaque; ret = spice_server_migrate_connect(spice_server, hostname, port, tls_port, subject); + spice_have_target_host = true; return ret; } -- 1.8.3.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PULL 0/2] spice patch queue 2014-05-08 8:51 [Qemu-devel] [PULL 0/2] spice patch queue Gerd Hoffmann 2014-05-08 8:51 ` [Qemu-devel] [PULL 1/2] spice: fix "info spice" Gerd Hoffmann 2014-05-08 8:51 ` [Qemu-devel] [PULL 2/2] spice: fix libvirt snapshots Gerd Hoffmann @ 2014-05-08 11:12 ` Peter Maydell 2 siblings, 0 replies; 4+ messages in thread From: Peter Maydell @ 2014-05-08 11:12 UTC (permalink / raw) To: Gerd Hoffmann; +Cc: QEMU Developers On 8 May 2014 09:51, Gerd Hoffmann <kraxel@redhat.com> wrote: > Hi, > > Here comes the spice patch queue with two little bugfixes. > > please pull, > Gerd > > The following changes since commit ff788b6fe67f694666781f821c1af812e8c7999b: > > Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-05-07' into staging (2014-05-07 18:38:39 +0100) > > are available in the git repository at: > > > git://anongit.freedesktop.org/spice/qemu tags/pull-spice-7 > > for you to fetch changes up to a76a2f729aae21c45c7e9eef8d1d80e94d1cc930: > > spice: fix libvirt snapshots (2014-05-08 10:45:54 +0200) Applied, thanks. -- PMM ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-08 11:12 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-08 8:51 [Qemu-devel] [PULL 0/2] spice patch queue Gerd Hoffmann 2014-05-08 8:51 ` [Qemu-devel] [PULL 1/2] spice: fix "info spice" Gerd Hoffmann 2014-05-08 8:51 ` [Qemu-devel] [PULL 2/2] spice: fix libvirt snapshots Gerd Hoffmann 2014-05-08 11:12 ` [Qemu-devel] [PULL 0/2] spice patch queue Peter Maydell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).