Skip to content

ui/console: initialize QemuDmaBuf in ui/console

[email protected] qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/virtio: initialize QemuDmaBuf using the function from ui/consolehw/display/virtio-gpu-udmabuf.c include/hw/virtio/virtio-gpu.h+12 -170 replies
2/3hw/vfio: intialize QemuDmaBuf using the function from ui/consolehw/vfio/display.c include/hw/vfio/vfio-common.h+21 -160 replies
3/3ui/console: add methods for allocating, intializing and accessing QemuDmaBufinclude/ui/console.h ui/console.c+65 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ui/console: initialize QemuDmaBuf in ui/console

From: Dongwon Kim <[email protected]>

QemuDmaBuf struct is defined and primarily used by ui/console/gl so it is better to handle its creation, initialization and access within ui/console rather than within hw modules such as hw/display/virtio-gpu and hw/vfio/display.

To achieve this, new methods for allocating, initializing the struct, and accessing certain fields necessary for hardware modules have been introduced in ui/console.c.
(3rd patch)

Furthermore, modifications have been made to hw/display/virtio-gpu and hw/vfio/display to utilize these new methods instead of setting up the struct independently.
(1st and 2nd patches)

Dongwon Kim (3):
hw/virtio: intialize QemuDmaBuf using the function from ui/console hw/vfio: intialize QemuDmaBuf using the function from ui/console ui/console: add methods for allocating, intializing and accessing
QemuDmaBuf

 hw/display/virtio-gpu-udmabuf.c | 27 +++++++---------
 hw/vfio/display.c               | 35 ++++++++++++---------
 include/hw/vfio/vfio-common.h   |  2 +-
 include/hw/virtio/virtio-gpu.h  |  2 +-
 include/ui/console.h            | 10 ++++++
 ui/console.c                    | 55 +++++++++++++++++++++++++++++++++
 6 files changed, 98 insertions(+), 33 deletions(-)
Signature · 1 line
2.34.1