diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-03-19 15:01:02 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-16 09:26:20 +0200 |
commit | dea1b0bdd8b0bb9d76a012fd0f234ba1768a4a93 (patch) | |
tree | 92d16be859f71d171a5d19c849ae521f37ed1ef1 /ui | |
parent | 0f7b2864d0d0c3ef2801f9214d8c510c80a220d1 (diff) | |
download | qemu-dea1b0bdd8b0bb9d76a012fd0f234ba1768a4a93.zip qemu-dea1b0bdd8b0bb9d76a012fd0f234ba1768a4a93.tar.gz qemu-dea1b0bdd8b0bb9d76a012fd0f234ba1768a4a93.tar.bz2 |
xen: re-enable refresh interval reporting for xenfb
xenfb informs the guest about the gui refresh interval so it can avoid
pointless work. That logic was temporarely disabled for the
DisplayState reorganization. Restore it now, with a proper interface
for it.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/console.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c index 5bbc891..43ff80b 100644 --- a/ui/console.c +++ b/ui/console.c @@ -182,6 +182,7 @@ static void gui_update(void *opaque) uint64_t dcl_interval; DisplayState *ds = opaque; DisplayChangeListener *dcl; + int i; ds->refreshing = true; dpy_refresh(ds); @@ -196,6 +197,11 @@ static void gui_update(void *opaque) } if (ds->update_interval != interval) { ds->update_interval = interval; + for (i = 0; i < nb_consoles; i++) { + if (consoles[i]->hw_ops->update_interval) { + consoles[i]->hw_ops->update_interval(consoles[i]->hw, interval); + } + } trace_console_refresh(interval); } ds->last_update = qemu_get_clock_ms(rt_clock); |