All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC v2 0/2] ui: Add a Wayland backend for Qemu UI (v2)
@ 2021-09-13 22:20 Vivek Kasireddy
  2021-09-13 22:20 ` [RFC v2 1/2] virtio-gpu: Add support for VIRTIO_GPU_F_RELEASE_FENCE Vivek Kasireddy
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Vivek Kasireddy @ 2021-09-13 22:20 UTC (permalink / raw)
  To: qemu-devel
  Cc: Dongwon Kim, Satyeshwar Singh, Vivek Kasireddy, Tina Zhang,
	Gerd Hoffmann, Marc-André Lureau

Why does Qemu need a new Wayland UI backend?
The main reason why there needs to be a plain and simple Wayland backend
for Qemu UI is to eliminate the Blit (aka GPU copy) that happens if using
a toolkit like GTK or SDL (because they use EGL). The Blit can be eliminated
by sharing the dmabuf fd -- associated with the Guest scanout buffer --
directly with the Host compositor via the linux-dmabuf (unstable) protocol.
Once properly integrated, it would be potentially possible to have the
scanout buffer created by the Guest compositor be placed directly on a
hardware plane on the Host thereby improving performance. Only Guest 
compositors that use multiple back buffers (at-least 1 front and 1 back)
and virtio-gpu would benefit from this work.

v2:
- Add support for handling/forwarding keyboard and mouse events.
- Augment handling of events to ensure that they are not lost in a
  multi-threaded environment.
- Rebase

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Dongwon Kim <dongwon.kim@intel.com>
Cc: Tina Zhang <tina.zhang@intel.com>
Cc: Satyeshwar Singh <satyeshwar.singh@intel.com>

Vivek Kasireddy (2):
  virtio-gpu: Add support for VIRTIO_GPU_F_RELEASE_FENCE
  ui: Add a plain Wayland backend for Qemu UI

 configure                                   |   8 +-
 hw/display/virtio-gpu-base.c                |   3 +
 hw/display/virtio-gpu-udmabuf.c             |   4 +-
 hw/display/virtio-gpu.c                     |  54 +-
 include/hw/virtio/virtio-gpu.h              |   6 +
 include/standard-headers/linux/virtio_gpu.h |   2 +
 meson.build                                 |  33 +
 meson_options.txt                           |   2 +
 qapi/ui.json                                |   3 +
 ui/meson.build                              |  52 ++
 ui/wayland.c                                | 628 ++++++++++++++++++++
 11 files changed, 791 insertions(+), 4 deletions(-)
 create mode 100644 ui/wayland.c

-- 
2.30.2



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-09-14 23:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13 22:20 [RFC v2 0/2] ui: Add a Wayland backend for Qemu UI (v2) Vivek Kasireddy
2021-09-13 22:20 ` [RFC v2 1/2] virtio-gpu: Add support for VIRTIO_GPU_F_RELEASE_FENCE Vivek Kasireddy
2021-09-13 22:20 ` [RFC v2 2/2] ui: Add a plain Wayland backend for Qemu UI Vivek Kasireddy
2021-09-14 15:21   ` Eric Blake
2021-09-14 16:15   ` Daniel P. Berrangé
2021-09-14 23:03     ` Kasireddy, Vivek
2021-09-14 16:29 ` [RFC v2 0/2] ui: Add a Wayland backend for Qemu UI (v2) Daniel P. Berrangé
2021-09-14 23:46   ` Kasireddy, Vivek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.