Skip to content

Add support for QEMU's ramfb display

Alexander Graf u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4qfw: Add WRITE definitioninclude/qfw.h+1 -01 reply
2/4ramfb: Add driver for ramfb displaydrivers/video/Kconfig drivers/video/MAINTAINERS drivers/video/Makefile +1 more+117 -01 reply
3/4qfw: Spawn ramfb device if its file is presentdrivers/misc/qfw.c+23 -00 replies
4/4qemu-arm*: Enable ramfb by defaultarch/arm/Kconfig board/emulation/qemu-arm/qemu-arm.c include/configs/qemu-arm.h+27 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchSimon Glass
1/4R-b
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] Add support for QEMU's ramfb display

QEMU implements multiple ways to expose graphics output to the virt machine, but most of them are incompatible with hardware virtualization.

The one that does work reliably is ramfb. It's a very simple mechanism in which the guest reserves a memory region for the frame buffer and then notifies the host about its location and properties. The host then just displays the contents of the frame buffer on screen.

This patch set adds support to drive the ramfb device in our QEMU arm targets. Theoretically, it should work as is with any of the other architectures as well though.

With this driver, we have a very simple, KVM compatible way to expose GOP via UEFI to payloads and thus enable development and testing of graphical OS functionality with QEMU's -M virt.

Alexander Graf (4):
qfw: Add WRITE definition
ramfb: Add driver for ramfb display
qfw: Spawn ramfb device if its file is present
qemu-arm*: Enable ramfb by default

 arch/arm/Kconfig                    |   4 ++
 board/emulation/qemu-arm/qemu-arm.c |  14 ++++
 drivers/misc/qfw.c                  |  23 ++++++
 drivers/video/Kconfig               |   8 +++
 drivers/video/MAINTAINERS           |   4 ++
 drivers/video/Makefile              |   1 +
 drivers/video/ramfb.c               | 104 ++++++++++++++++++++++++++++
 include/configs/qemu-arm.h          |   9 +++
 include/qfw.h                       |   1 +
 9 files changed, 168 insertions(+)
 create mode 100644 drivers/video/MAINTAINERS
 create mode 100644 drivers/video/ramfb.c
Signature · 1 line
2.32.0