Skip to content

qxl: implement vga mode without locks

Alon Levy qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 14 repliesIn review
  2. v24 patches 1 replySuperseded
  3. v14 patches 4 repliesSuperseded

v1->v2 changes from the cover letter

* patch 4 rewrite: instead of todos implemented usage of pipe for cursor_set and cursor_move.
* small fixes: (Hans de Goede)
* fix introducing function in patch 1 and renaming it in patch 2. (s/qxl_create_vcpu_to_iothread_pipe/qxl_create_server_to_iothread_pipe/)
* move prototype defined in patch 1 but used in patch 2 to patch 2. (qxl_vga_mode_get_command)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4qxl/spice-display: move pipe to ssdhw/qxl.c hw/qxl.h ui/spice-display.c +1 more+34 -213 replies
2/4qxl: implement get_command in vga mode without lockshw/qxl.c ui/spice-display.c ui/spice-display.h+146 -261 reply
3/4qxl/spice: remove qemu_mutex_{un, }lock_iothread around dispatcherhw/qxl.c ui/spice-display.c+3 -241 reply
4/4hw/qxl-render: drop cursor locks, replace with pipehw/qxl-render.c hw/qxl.c hw/qxl.h +1 more+122 -109 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchHans de Goede
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/4] qxl: implement vga mode without locks

v2->v3 changes: (Hans de Goede)
* minor review fixes
* fix compilation of qemu with --enable-spice with a target which does not have a qxl device

v1->v2 changes:
* patch 4 rewrite: instead of todos implemented usage of pipe for cursor_set and cursor_move.
* small fixes: (Hans de Goede)
* fix introducing function in patch 1 and renaming it in patch 2. (s/qxl_create_vcpu_to_iothread_pipe/qxl_create_server_to_iothread_pipe/)
* move prototype defined in patch 1 but used in patch 2 to patch 2. (qxl_vga_mode_get_command)

This patchset removes all uses of unlock/lock in qxl and spice code.

It does this by reimplementing the one path that required a lock from the spice-server thread, namely interface_get_command when in vga mode or running without a qxl device.

Incidentaly it fixes the assert(cpu_single_env) that happen in the unrelated qemu-kvm repository, because we never drop the global lock in io vmexits.

Tested with winxp 32 bit and linux 64 bit vms, including changes between vga mode and qxl mode using chvt. Also tested -sdl and -vnc together with -spice.

Alon Levy (3):
qxl/spice-display: move pipe to ssd
qxl/spice: remove qemu_mutex_{un,}lock_iothread around dispatcher hw/qxl-render: drop cursor locks, replace with pipe

Uri Lublin (1):
qxl: implement get_command in vga mode without locks

 hw/qxl-render.c    |   25 ++++---
 hw/qxl.c           |  193 +++++++++++++++++++++++++++++++++++++++++-----------
 hw/qxl.h           |    8 +-
 ui/spice-display.c |  115 +++++++++++++++++++++++++------
 ui/spice-display.h |   35 ++++++++++
 5 files changed, 300 insertions(+), 76 deletions(-)
Signature · 1 line
1.7.4.1