]> Git Repo - qemu.git/blobdiff - hw/display/qxl.c
spice: don't update mm_time when spice-server is stopped.
[qemu.git] / hw / display / qxl.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);
This page took 0.021116 seconds and 4 git commands to generate.