mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
Move graphic-related coalesced MMIO flushes to affected device models
This is conceptually cleaner and will allow us to drop the nographic timer. Moreover, it will be mandatory to fully exploit future per-device coalesced MMIO rings. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
2a22e6eb1b
commit
e9a07334fb
3 changed files with 8 additions and 2 deletions
2
vl.c
2
vl.c
|
@ -1196,7 +1196,6 @@ static void gui_update(void *opaque)
|
|||
DisplayState *ds = opaque;
|
||||
DisplayChangeListener *dcl = ds->listeners;
|
||||
|
||||
qemu_flush_coalesced_mmio_buffer();
|
||||
dpy_refresh(ds);
|
||||
|
||||
while (dcl != NULL) {
|
||||
|
@ -1212,7 +1211,6 @@ static void nographic_update(void *opaque)
|
|||
{
|
||||
uint64_t interval = GUI_REFRESH_INTERVAL;
|
||||
|
||||
qemu_flush_coalesced_mmio_buffer();
|
||||
qemu_mod_timer(nographic_timer, interval + qemu_get_clock_ms(rt_clock));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue