public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: Zhu Yijun <lovemrd@gmail.com>, devel@edk2.groups.io
Cc: Ruiyu Ni <ruiyu.ni@intel.com>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: Re: implement about virtio-keyboard
Date: Tue, 23 Feb 2021 15:46:17 +0100	[thread overview]
Message-ID: <81c4017a-ef40-f729-d304-956105910947@redhat.com> (raw)
In-Reply-To: <CAF_Z_jpXFnoQ+YeA9t12aEt+-CT_1y=ktzF3paGNUZAk9SXGWw@mail.gmail.com>

On 02/23/21 09:48, Zhu Yijun wrote:
> Hi all,
>     I boot vm with the virtio keyboard on aarch64. It looks UEFI lacks
> support for the virtio keyboard, so I can't do any keyboard input
> before the linux kernel driver loads, i.e. edit the grub boot menu. Is
> there any plan to support it?

Not on my side.

My team discussed virtio-input's relevance for ArmVirtQemu in September
2016.

We decided not to bother about it, because:

(1) XHCI was virtualization-friendly, both performance-wise and
configuration-wise (unlike EHCI),

(2) QEMU and libvirt were going to gain (... or had just gained ...)
XHCI support, on aarch64 / "virt".


So today, just use a "qemu-xhci" controller in your domain config
please, in combination with a USB keyboard. (If you define a new aarch64
domain with libvirt, this should happen out of the box for you.)

ArmVirtQemu includes all the edk2 drivers necessary for driving those
devices, and ArmVirtQemu's PlatformBootManagerLib instance will connect
the USB keyboard automatically. There shouldn't be a problem when typing
in "grub".

Thanks
Laszlo

>     I find UsbKeyboardDevice attach on UsbIO which implements its
> protocol interface structure(such as UsbGetInterfaceDescriptor,
> UsbAsyncInterruptTransfer) defined by UEFI spec, but virtio not. So is
> there some way to implement similar interfaces?
> 
> Best regards,
> Cheng Mao
> 


  reply	other threads:[~2021-02-23 14:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23  8:48 implement about virtio-keyboard Zhu Yijun
2021-02-23 14:46 ` Laszlo Ersek [this message]
2021-02-24  2:55   ` Zhu Yijun
2021-02-25 18:54     ` Laszlo Ersek
2021-02-26  7:59       ` Zhu Yijun

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=81c4017a-ef40-f729-d304-956105910947@redhat.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