public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Oliver Smith-Denny" <osde@linux.microsoft.com>
To: devel@edk2.groups.io, ardb@kernel.org
Cc: Leif Lindholm <quic_llindhol@quicinc.com>,
	Sami Mujawar <sami.mujawar@arm.com>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [edk2-devel][PATCH v1 1/1] ArmVirtPkg: ArmVirtQemu: Add Graphics and Input
Date: Tue, 5 Sep 2023 09:05:37 -0700	[thread overview]
Message-ID: <80b6f01c-7708-4ddb-ba58-c644fbfd1730@linux.microsoft.com> (raw)
In-Reply-To: <CAMj1kXHxUHWi0vG0_XF8Yz0Uy-FnmiXuwFzuGbWC_=GTQAkFfA@mail.gmail.com>

Gentle reminder on this now that the stable tag has passed.

Thanks,
Oliver

On 8/18/2023 2:05 PM, Ard Biesheuvel wrote:
> On Fri, 18 Aug 2023 at 20:17, Oliver Smith-Denny
> <osde@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_llindhol@quicinc.com>
>> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
>> Cc: Sami Mujawar <sami.mujawar@arm.com>
>> Cc: Gerd Hoffmann <kraxel@redhat.com>
>>
>> Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
> 
> Reviewed-by: Ard Biesheuvel <ardb@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 (#108291): https://edk2.groups.io/g/devel/message/108291
Mute This Topic: https://groups.io/mt/100826022/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2023-09-05 16:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-18 18:17 [edk2-devel][PATCH v1 1/1] ArmVirtPkg: ArmVirtQemu: Add Graphics and Input Oliver Smith-Denny
2023-08-18 21:05 ` Ard Biesheuvel
2023-09-05 16:05   ` Oliver Smith-Denny [this message]
2023-09-06  9:15     ` Ard Biesheuvel
2023-08-19 19:39 ` Marcin Juszkiewicz
2023-08-19 22:10   ` Pedro Falcato
2023-08-21 14:38     ` Gerd Hoffmann
2023-08-21 14:51     ` Leif Lindholm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80b6f01c-7708-4ddb-ba58-c644fbfd1730@linux.microsoft.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox