From: Sean Christopherson <seanjc@google.com>
To: Zixuan Wang <zxwang@fb.com>
Cc: kvm@vger.kernel.org, pbonzini@redhat.com, drjones@redhat.com,
shankaran@fb.com, somnathc@fb.com, marcorr@google.com,
varad.gautam@suse.com, jroedel@suse.de, bp@suse.de,
zxwang42@gmail.com
Subject: Re: [kvm-unit-tests RFC PATCH 1/5] efi: Compile standalone binaries for EFI
Date: Wed, 5 Oct 2022 18:20:37 +0000 [thread overview]
Message-ID: <Yz3K9UXuut25wj2h@google.com> (raw)
In-Reply-To: <20220816175413.3553795-2-zxwang@fb.com>
On Tue, Aug 16, 2022, Zixuan Wang wrote:
> Currently the standalone binaries do not work with EFI as the scripts
> are not aware of EFI-related files. More specifically, the scripts only
> search for .flat files, but EFI binaries are .efi files.
>
> This patch fixes this by introducing a new 'efi' option for
Avoid this patch, and phrase changelogs as command. E.g.
Introduce an "efi" option in unittests.cfg <reasoning...>
> unittests.cfg. This patch does not contain any modifications to use this
> new efi option. Those updates will be folded into the follow-up patch.
>
> Signed-off-by: Zixuan Wang <zxwang@fb.com>
> ---
> scripts/common.bash | 24 ++++++++++++++++++++++--
> scripts/mkstandalone.sh | 17 ++++++++++++++++-
> x86/unittests.cfg | 3 +++
> 3 files changed, 41 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/common.bash b/scripts/common.bash
> index 7b983f7..7af9d62 100644
> --- a/scripts/common.bash
> +++ b/scripts/common.bash
> @@ -1,5 +1,21 @@
> source config.mak
>
> +function unittest_enabled()
> +{
> + test_name="$1"
> + test_efi="$2"
> +
> + if [ -z "${test_name}" ]; then
> + false
> + elif [ "${CONFIG_EFI}" == "y" ] && [ "${test_efi}" == "no" ]; then
> + false
> + elif [ "${CONFIG_EFI}" == "n" ] && [ "${test_efi}" == "only" ]; then
Having to tag every test as EFI-friendly is going to get annoying, and without
context it's not super obvious that "efi = yes" means EFI-friendly _and_ legacy-
friendly.
Rather than "efi = {yes,no,only}", what about "efi = {unsupported,required}"?
I.e. tag only tests that don't support all flavors of firmware.
next parent reply other threads:[~2022-10-05 18:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220816175413.3553795-1-zxwang@fb.com>
[not found] ` <20220816175413.3553795-2-zxwang@fb.com>
2022-10-05 18:20 ` Sean Christopherson [this message]
[not found] ` <20220816175413.3553795-3-zxwang@fb.com>
2022-10-05 18:24 ` [kvm-unit-tests RFC PATCH 2/5] x86/efi: Fix efi runner scripts for standalone Sean Christopherson
[not found] ` <20220816175413.3553795-4-zxwang@fb.com>
2022-10-05 18:34 ` [kvm-unit-tests RFC PATCH 3/5] x86/efi: Update unittests.cfg to build standalones Sean Christopherson
[not found] ` <20220816175413.3553795-6-zxwang@fb.com>
2022-10-05 18:38 ` [kvm-unit-tests RFC PATCH 5/5] x86/efi: Update README with standalone instructions Sean Christopherson
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=Yz3K9UXuut25wj2h@google.com \
--to=seanjc@google.com \
--cc=bp@suse.de \
--cc=drjones@redhat.com \
--cc=jroedel@suse.de \
--cc=kvm@vger.kernel.org \
--cc=marcorr@google.com \
--cc=pbonzini@redhat.com \
--cc=shankaran@fb.com \
--cc=somnathc@fb.com \
--cc=varad.gautam@suse.com \
--cc=zxwang42@gmail.com \
--cc=zxwang@fb.com \
/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.