[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
- [Qemu-devel] [PATCH 00/10] RFC: spice: add -display app to launch external UI, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 01/10] char/spice: trigger HUP event, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 02/10] char/spice: discard write() if backend is disconnected, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 03/10] configure: bump spice-server required version to 0.12.6, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 04/10] spice: avoid spice runtime assert, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 05/10] spice: merge options lists, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 06/10] spice: do not stop spice if VM is paused,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 07/10] char: move SpiceChardev and open_spice_port() to spice.h header, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 08/10] char: register spice ports after spice started, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 09/10] build-sys: add gio-2.0 check, Marc-André Lureau, 2018/08/03
- [Qemu-devel] [PATCH 10/10] display: add -display app launching external application, Marc-André Lureau, 2018/08/03