yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-spice-move-spice_server_vm_-start-stop-calls-into-qe.patch

9ae3a8
From 8b96a7cb5bab06ecc5e85f292fbe7598b0e24c8c Mon Sep 17 00:00:00 2001
9ae3a8
From: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
Date: Fri, 5 Sep 2014 12:30:36 +0200
9ae3a8
Subject: [PATCH 02/12] spice: move spice_server_vm_{start, stop} calls into qemu_spice_display_*()
9ae3a8
9ae3a8
Message-id: <1409920238-9070-3-git-send-email-kraxel@redhat.com>
9ae3a8
Patchwork-id: 60874
9ae3a8
O-Subject: [RHEL-7.1 qemu-kvm PATCH 2/4] spice: move spice_server_vm_{start, stop} calls into qemu_spice_display_*()
9ae3a8
Bugzilla: 1054077
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
9ae3a8
9ae3a8
So calling spice server to start/stop the worker goes
9ae3a8
hand in hand with the status variable update.
9ae3a8
9ae3a8
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
(cherry picked from commit b50f3e42b9438e033074222671c0502ecfeba82c)
9ae3a8
---
9ae3a8
 ui/spice-core.c | 4 ++--
9ae3a8
 1 file changed, 2 insertions(+), 2 deletions(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 ui/spice-core.c |    4 ++--
9ae3a8
 1 files changed, 2 insertions(+), 2 deletions(-)
9ae3a8
9ae3a8
diff --git a/ui/spice-core.c b/ui/spice-core.c
9ae3a8
index 6a7c86f..99a76d2 100644
9ae3a8
--- a/ui/spice-core.c
9ae3a8
+++ b/ui/spice-core.c
9ae3a8
@@ -621,9 +621,7 @@ static void vm_change_state_handler(void *opaque, int running,
9ae3a8
 {
9ae3a8
     if (running) {
9ae3a8
         qemu_spice_display_start();
9ae3a8
-        spice_server_vm_start(spice_server);
9ae3a8
     } else {
9ae3a8
-        spice_server_vm_stop(spice_server);
9ae3a8
         qemu_spice_display_stop();
9ae3a8
     }
9ae3a8
 }
9ae3a8
@@ -877,10 +875,12 @@ int qemu_spice_display_add_client(int csock, int skipauth, int tls)
9ae3a8
 void qemu_spice_display_start(void)
9ae3a8
 {
9ae3a8
     spice_display_is_running = true;
9ae3a8
+    spice_server_vm_start(spice_server);
9ae3a8
 }
9ae3a8
 
9ae3a8
 void qemu_spice_display_stop(void)
9ae3a8
 {
9ae3a8
+    spice_server_vm_stop(spice_server);
9ae3a8
     spice_display_is_running = false;
9ae3a8
 }
9ae3a8
 
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8