From: "Alex Bennée" <alex.bennee@linaro.org>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "Philippe Mathieu-Daudé" <philippe.mathieu.daude@gmail.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Cleber Rosa" <cleber@redhat.com>,
"Beraldo Leal" <bleal@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
"Laszlo Ersek" <lersek@redhat.com>, "Oleg Vasilev" <me@svin.in>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Emilio Cota" <cota@braap.org>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
qemu-arm@nongnu.org
Subject: Re: Analysis of slow distro boots in check-avocado (BootLinuxAarch64.test_virt_tcg*)
Date: Wed, 23 Feb 2022 10:10:03 +0000 [thread overview]
Message-ID: <87zgmhlwjw.fsf@linaro.org> (raw)
In-Reply-To: <20220223084836.yapqj35tiocjios4@sirius.home.kraxel.org>
Gerd Hoffmann <kraxel@redhat.com> writes:
> Hi,
>
>> > > If you want to boot a guest using EDK2, you should use the images
>> > > build by your distribution (/usr/share/qemu/edk2-aarch64-code.fd),
>> > > not these images.
>
>> Then we should add edk2-aarch64 and edk2-ovmf to lcitool, to have
>> the distrib images in our generated Docker images.
>>
>> Cleber, you added this test in commit 6fd52d671d ("Acceptance test:
>> add "boot_linux" tests"), can you have a look?
>
> Well, it's not *that* simple. Names are not consistent across
> distributions. I think if we want go that route we have to inspect
> the *.json files in /usr/share/qemu/firmware to find the correct
> distro firmware images.
>
> Also note that at least fedora ships both verbose and non-verbose
> images ...
>
> kraxel@sirius ~# rpm -ql edk2-aarch64
> [ ... ]
> /usr/share/edk2/aarch64/QEMU_EFI-pflash.raw
> /usr/share/edk2/aarch64/QEMU_EFI-silent-pflash.raw
> /usr/share/edk2/aarch64/QEMU_EFI.fd
> /usr/share/edk2/aarch64/QEMU_EFI.silent.fd
> /usr/share/edk2/aarch64/QEMU_VARS.fd
> [ ... ]
> /usr/share/qemu/firmware/60-edk2-aarch64.json
> /usr/share/qemu/firmware/70-edk2-aarch64-verbose.json
>
> ... so maybe it is an option to use the distro images for the bios
> tables test cases too.
Debian isn't quite so free with it's use of disk space although:
10:09:19 [root@zen:~] # dpkg -L qemu-efi-aarch64
/.
/usr
/usr/share
/usr/share/AAVMF
/usr/share/AAVMF/AAVMF_CODE.fd
/usr/share/AAVMF/AAVMF_VARS.fd
/usr/share/doc
/usr/share/doc/qemu-efi-aarch64
/usr/share/doc/qemu-efi-aarch64/changelog.Debian.gz
/usr/share/doc/qemu-efi-aarch64/copyright
/usr/share/qemu
/usr/share/qemu/firmware
/usr/share/qemu/firmware/60-edk2-aarch64.json
/usr/share/qemu-efi-aarch64
/usr/share/qemu-efi-aarch64/QEMU_EFI.fd
10:09:25 [root@zen:~] # md5sum /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/qemu-efi-aarch64/QEMU_EFI.fd
573b65b6e04981abb5b10afc8f30feea /usr/share/AAVMF/AAVMF_CODE.fd
99812e842b6b40add0d8f7766e0aac9e /usr/share/qemu-efi-aarch64/QEMU_EFI.fd
10:09:37 [root@zen:~] # ls -lh /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/qemu-efi-aarch64/QEMU_EFI.fd
-rw-r--r-- 1 root root 64M Aug 18 2021 /usr/share/AAVMF/AAVMF_CODE.fd
-rw-r--r-- 1 root root 2.0M Aug 18 2021 /usr/share/qemu-efi-aarch64/QEMU_EFI.fd
I think the QEMU_EFI.fd is the firmware and AAVF_CODE is the same
firmware but packaged in the "right" size of flash file.
However if we are to use the distro version (or at least favour it) do
we need to start encoding searches through common paths?
I'm also sympathetic to Peter's point that distros might just end up packaging
what we give them in pc-bios and we'll be back to square one. I'd favour
pc-bios having both a edk2-aarch64-code.fd and a edk2-aarch64-code-debug.fd.
>
> take care,
> Gerd
--
Alex Bennée
next prev parent reply other threads:[~2022-02-23 10:14 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-17 11:19 Analysis of slow distro boots in check-avocado (BootLinuxAarch64.test_virt_tcg*) Alex Bennée
2022-02-17 11:19 ` Alex Bennée
2022-02-22 16:17 ` Alex Bennée
2022-02-22 16:17 ` Alex Bennée
2022-02-22 16:38 ` Daniel P. Berrangé
2022-02-22 16:38 ` Daniel P. Berrangé
2022-02-22 17:33 ` Philippe Mathieu-Daudé
2022-02-22 17:33 ` Philippe Mathieu-Daudé
2022-02-22 17:37 ` Peter Maydell
2022-02-22 17:37 ` Peter Maydell
2022-02-22 18:05 ` Philippe Mathieu-Daudé
2022-02-22 18:05 ` Philippe Mathieu-Daudé
2022-02-23 8:48 ` Gerd Hoffmann
2022-02-23 8:48 ` Gerd Hoffmann
2022-02-23 10:10 ` Alex Bennée [this message]
2022-02-23 10:58 ` Philippe Mathieu-Daudé
2022-02-23 10:58 ` Philippe Mathieu-Daudé
2022-02-23 9:19 ` Peter Maydell
2022-02-23 9:19 ` Peter Maydell
2022-02-23 10:53 ` Philippe Mathieu-Daudé
2022-02-23 10:53 ` Philippe Mathieu-Daudé
2022-02-23 11:11 ` Daniel P. Berrangé
2022-02-23 11:11 ` Daniel P. Berrangé
2022-02-23 11:50 ` Gerd Hoffmann
2022-02-23 11:50 ` Gerd Hoffmann
2022-02-24 9:10 ` Igor Mammedov
2022-02-24 9:10 ` Igor Mammedov
2022-02-24 11:39 ` Laszlo Ersek
2022-02-24 11:39 ` Laszlo Ersek
2022-03-08 12:42 ` Gerd Hoffmann
2022-03-08 12:42 ` Gerd Hoffmann
2022-02-23 11:07 ` Daniel P. Berrangé
2022-02-23 11:07 ` Daniel P. Berrangé
2022-02-23 13:34 ` Philippe Mathieu-Daudé
2022-02-23 13:34 ` Philippe Mathieu-Daudé
2022-02-23 13:43 ` Daniel P. Berrangé
2022-02-23 13:43 ` Daniel P. Berrangé
2022-02-23 14:00 ` Philippe Mathieu-Daudé
2022-02-23 14:00 ` Philippe Mathieu-Daudé
2022-02-23 16:37 ` Laszlo Ersek
2022-02-23 16:37 ` Laszlo Ersek
2022-02-23 18:51 ` Alex Bennée
2022-02-23 19:28 ` Peter Maydell
2022-02-23 19:28 ` Peter Maydell
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-all 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=87zgmhlwjw.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=berrange@redhat.com \
--cc=bleal@redhat.com \
--cc=cleber@redhat.com \
--cc=cota@braap.org \
--cc=f4bug@amsat.org \
--cc=kraxel@redhat.com \
--cc=lersek@redhat.com \
--cc=me@svin.in \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philippe.mathieu.daude@gmail.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.