qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 06/10] spice: do not stop spice if VM is paused


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH 06/10] spice: do not stop spice if VM is paused
Date: Fri, 3 Aug 2018 19:36:10 +0200

spice_server_vm_start/stop() was added to help migration state.

However, a paused VM could keep running the spice server. This will
allow a Spice client to keep sending commands to a spice chardev. This
allows to stop/cont a VM from a Spice monitor port.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 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 6bd107f0f9..88f0cd7262 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -629,7 +629,7 @@ static void vm_change_state_handler(void *opaque, int 
running,
 {
     if (running) {
         qemu_spice_display_start();
-    } else {
+    } else if (state != RUN_STATE_PAUSED) {
         qemu_spice_display_stop();
     }
 }
-- 
2.18.0.547.g1d89318c48




reply via email to

[Prev in Thread] Current Thread [Next in Thread]