On Fri, 18 Aug 2023 at 20:17, Oliver Smith-Denny <o...@linux.microsoft.com> wrote: > > Currently, unlike OVMF, ArmVirtQemu does not display any graphics, > only the QEMU monitor. Graphics are helpful to confirm booting into > an OS is successful, interacting with the EFI shell while getting > separate logging messages, etc. > > This patch adds the QEMU parameters to launch a graphical window > and add a USB keyboard and mouse, which is modeled as a tablet as > it tracks better in QEMU than a generic mouse. virtio-gpu-pci is > chosen as the graphics device as it is recommended by QEMU for the > ARM virtual platform. > > The graphics and USB input devices will only be added to QEMU when > QEMU_HEADLESS == FALSE, so CI builds will not attempt to use the > graphics and if a user does not want graphics, they can add > QEMU_HEADLESS=TRUE to the build cmdline. > > GitHub PR: https://github.com/tianocore/edk2/pull/4750 > > Cc: Leif Lindholm <quic_llind...@quicinc.com> > Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> > Cc: Sami Mujawar <sami.muja...@arm.com> > Cc: Gerd Hoffmann <kra...@redhat.com> > > Signed-off-by: Oliver Smith-Denny <o...@linux.microsoft.com>
Reviewed-by: Ard Biesheuvel <a...@kernel.org> Feel free to remind me to queue this up after the stable tag release. > --- > ArmVirtPkg/PlatformCI/PlatformBuildLib.py | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/ArmVirtPkg/PlatformCI/PlatformBuildLib.py > b/ArmVirtPkg/PlatformCI/PlatformBuildLib.py > index 405817cae785..0ddaccf9c21f 100644 > --- a/ArmVirtPkg/PlatformCI/PlatformBuildLib.py > +++ b/ArmVirtPkg/PlatformCI/PlatformBuildLib.py > @@ -244,6 +244,11 @@ class PlatformBuilder(UefiBuilder, BuildSettingsManager): > # Conditional Args > if (self.env.GetValue("QEMU_HEADLESS").upper() == "TRUE"): > args += " -display none" # no graphics > + else: > + args += " -device virtio-gpu-pci" # add > recommended QEMU graphics device > + args += " -device qemu-xhci,id=usb" # add > USB support for below devices > + args += " -device usb-tablet,id=input0,bus=usb.0,port=1" # add > a usb mouse > + args += " -device usb-kbd,id=input1,bus=usb.0,port=2" # add > a usb keyboard > > if (self.env.GetValue("MAKE_STARTUP_NSH").upper() == "TRUE"): > f = open(os.path.join(VirtualDrive, "startup.nsh"), "w") > -- > 2.40.1 > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107854): https://edk2.groups.io/g/devel/message/107854 Mute This Topic: https://groups.io/mt/100826022/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-