cryptospore / 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

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