[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/6] spice: reduce refresh rate in native mode
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 2/6] spice: reduce refresh rate in native mode |
Date: |
Tue, 16 Dec 2014 15:13:33 +0100 |
Now that cursor updates are out of the way qxl needs the refresh timer
only when when running in vga mode, for dirty bitmap checking. In
native qxl mode the guest will notify us, so we don't need to poll and
can use the idle interval (one refresh wakeup every few seconds).
Cc: Marc-André Lureau <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/display/qxl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/display/qxl.c b/hw/display/qxl.c
index 5151bac..61df477 100644
--- a/hw/display/qxl.c
+++ b/hw/display/qxl.c
@@ -1092,6 +1092,7 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d)
spice_qxl_driver_unload(&d->ssd.qxl);
#endif
graphic_console_set_hwops(d->ssd.dcl.con, d->vga.hw_ops, &d->vga);
+ update_displaychangelistener(&d->ssd.dcl, GUI_REFRESH_INTERVAL_DEFAULT);
qemu_spice_create_host_primary(&d->ssd);
d->mode = QXL_MODE_VGA;
vga_dirty_log_start(&d->vga);
@@ -1105,6 +1106,7 @@ static void qxl_exit_vga_mode(PCIQXLDevice *d)
}
trace_qxl_exit_vga_mode(d->id);
graphic_console_set_hwops(d->ssd.dcl.con, &qxl_ops, d);
+ update_displaychangelistener(&d->ssd.dcl, GUI_REFRESH_INTERVAL_IDLE);
vga_dirty_log_stop(&d->vga);
qxl_destroy_primary(d, QXL_SYNC);
}
@@ -1153,6 +1155,7 @@ static void qxl_soft_reset(PCIQXLDevice *d)
qxl_enter_vga_mode(d);
} else {
d->mode = QXL_MODE_UNDEFINED;
+ update_displaychangelistener(&d->ssd.dcl, GUI_REFRESH_INTERVAL_IDLE);
}
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/6] spice patch queue, Gerd Hoffmann, 2014/12/16
- [Qemu-devel] [PULL 3/6] spice: rework mirror allocation, add no-resize fast path, Gerd Hoffmann, 2014/12/16
- [Qemu-devel] [PULL 2/6] spice: reduce refresh rate in native mode,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 1/6] spice: use bottom half instead of refresh timer for cursor updates, Gerd Hoffmann, 2014/12/16
- [Qemu-devel] [PULL 4/6] spice: do not require TCP ports, Gerd Hoffmann, 2014/12/16
- [Qemu-devel] [PULL 6/6] spice: fix memory leak, Gerd Hoffmann, 2014/12/16
- [Qemu-devel] [PULL 5/6] spice: remove spice-experimental.h include, Gerd Hoffmann, 2014/12/16
- Re: [Qemu-devel] [PULL 0/6] spice patch queue, Peter Maydell, 2014/12/17