mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qxl: async io support using new spice api
Some of the QXL port i/o commands are waiting for the spice server to complete certain actions. Add async versions for these commands, so we don't block the vcpu while the spice server processses the command. Instead the qxl device will raise an IRQ when done. The async command processing relies on an added QXLInterface::async_complete and added QXLWorker::*_async additions, in spice server qxl >= 3.1 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Alon Levy <alevy@redhat.com>
This commit is contained in:
parent
e21a298a7b
commit
5ff4e36c80
5 changed files with 274 additions and 54 deletions
|
@ -125,7 +125,7 @@ void qxl_render_update(PCIQXLDevice *qxl)
|
|||
|
||||
memset(dirty, 0, sizeof(dirty));
|
||||
qxl_spice_update_area(qxl, 0, &update,
|
||||
dirty, ARRAY_SIZE(dirty), 1);
|
||||
dirty, ARRAY_SIZE(dirty), 1, QXL_SYNC);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(dirty); i++) {
|
||||
if (qemu_spice_rect_is_empty(dirty+i)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue