]> Git Repo - qemu.git/commitdiff
spice: don't update mm_time when spice-server is stopped.
authorGerd Hoffmann <[email protected]>
Tue, 12 May 2015 09:54:34 +0000 (11:54 +0200)
committerGerd Hoffmann <[email protected]>
Fri, 29 May 2015 07:56:01 +0000 (09:56 +0200)
Skip mm_time updates (in qxl device memory) in case the guest is stopped.
Guest isn't able to look anyway, and it causes problems with migration.

Also make sure the initial state for spice server is stopped.

Reported-by: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/display/qxl.c
ui/spice-core.c

index 8f40dfb8acd8f4ef1b9bbfef77fda408d6780c44..b220e2d5d2d8c19adad0453f97005eb772e1ae57 100644 (file)
@@ -504,6 +504,10 @@ static void interface_set_mm_time(QXLInstance *sin, uint32_t mm_time)
 {
     PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl);
 
+    if (!qemu_spice_display_is_running(&qxl->ssd)) {
+        return;
+    }
+
     trace_qxl_interface_set_mm_time(qxl->id, mm_time);
     qxl->shadow_rom.mm_clock = cpu_to_le32(mm_time);
     qxl->rom->mm_clock = cpu_to_le32(mm_time);
index f00e0742b4adac2e08bb22349c0e55d39ab5e98e..2e8384e6530af1f98484297b8d3c3cd11e0c0d79 100644 (file)
@@ -804,6 +804,7 @@ void qemu_spice_init(void)
     qemu_spice_audio_init();
 
     qemu_add_vm_change_state_handler(vm_change_state_handler, NULL);
+    qemu_spice_display_stop();
 
     g_free(x509_key_file);
     g_free(x509_cert_file);
This page took 0.039851 seconds and 4 git commands to generate.