mbox series

[00/16] UI-related fixes & shareable 2d memory with -display dbus

Message ID 20241003112244.3340697-1-marcandre.lureau@redhat.com (mailing list archive)
Headers show
Series UI-related fixes & shareable 2d memory with -display dbus | expand

Message

Marc-André Lureau Oct. 3, 2024, 11:22 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

This series adds Listener.Unix.Map interface to -display dbus, to allow shared
memory for the display (similar to Listener.Win32.Map interface).

While working on it, I collected a few fixes. I can re-send them in a different
series or queue them once they are reviewed.

thanks

Marc-André Lureau (16):
  hw/audio/hda: free timer on exit
  hw/audio/hda: fix memory leak on audio setup
  ui/dbus: fix leak on message filtering
  ui/win32: fix potential use-after-free with dbus shared memory
  ui/dbus: fix filtering all update messages
  ui/dbus: discard display messages on disable
  ui/dbus: discard pending CursorDefine on new one
  util/memfd: report potential errors on free
  ui/pixman: generalize shared_image_destroy
  ui/dbus: do not limit to one listener per connection / bus name
  ui/dbus: add trace for can_share_map
  ui/surface: allocate shared memory on !win32
  ui/dbus: add Listener.Unix.Map interface XML
  ui/dbus: implement Unix.Map
  virtio-gpu: allocate shareable 2d resources on !win32
  tests: add basic -display dbus Map.Unix test

 include/hw/virtio/virtio-gpu.h  |   4 +-
 include/ui/qemu-pixman.h        |   2 +
 include/ui/surface.h            |   8 ++
 hw/audio/hda-codec.c            |  33 ++++---
 hw/display/virtio-gpu.c         |  49 +++++-----
 tests/qtest/dbus-display-test.c |  64 ++++++++++++--
 ui/console.c                    |  50 ++++++-----
 ui/dbus-console.c               |  23 ++---
 ui/dbus-listener.c              | 152 ++++++++++++++++++++++++++++----
 ui/qemu-pixman.c                |  19 ++++
 util/memfd.c                    |   9 +-
 roms/openbios                   |   2 +-
 ui/dbus-display1.xml            |  45 ++++++++++
 ui/trace-events                 |   1 +
 14 files changed, 361 insertions(+), 100 deletions(-)