From: Alistair Francis <alistair23@gmail.com>
To: Andrea Bolognani <abologna@redhat.com>
Cc: qemu-devel@nongnu.org, "Laurent Vivier" <laurent@vivier.eu>,
"Daniel P . Berrangé" <berrange@redhat.com>,
"David Abdurachmanov" <davidlt@rivosinc.com>
Subject: Re: [PATCH v2 1/3] binfmt: Shuffle things around
Date: Mon, 24 Feb 2025 11:36:50 +1000 [thread overview]
Message-ID: <CAKmqyKP9XC9evZP+6RHgV9Nq_pfc+B10mXOH_mjsdirJ+AFGxQ@mail.gmail.com> (raw)
In-Reply-To: <20250127182924.103510-2-abologna@redhat.com>
On Tue, Jan 28, 2025 at 4:29 AM Andrea Bolognani <abologna@redhat.com> wrote:
>
> This should make no difference from the functional point of
> view and it's just preparation for upcoming changes.
>
> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
> scripts/qemu-binfmt-conf.sh | 17 ++++++++++-------
> 1 file changed, 10 insertions(+), 7 deletions(-)
>
> diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh
> index 6ef9f118d9..426f075e31 100755
> --- a/scripts/qemu-binfmt-conf.sh
> +++ b/scripts/qemu-binfmt-conf.sh
> @@ -318,20 +318,23 @@ qemu_set_binfmts() {
> mask=$(eval echo \$${cpu}_mask)
> family=$(eval echo \$${cpu}_family)
>
> + target="$cpu"
> + if [ "$cpu" = "i486" ] ; then
> + target="i386"
> + fi
> +
> + qemu="$QEMU_PATH/qemu-$target$QEMU_SUFFIX"
> +
> if [ "$magic" = "" ] || [ "$mask" = "" ] || [ "$family" = "" ] ; then
> echo "INTERNAL ERROR: unknown cpu $cpu" 1>&2
> continue
> fi
>
> - qemu="$QEMU_PATH/qemu-$cpu"
> - if [ "$cpu" = "i486" ] ; then
> - qemu="$QEMU_PATH/qemu-i386"
> + if [ "$host_family" = "$family" ] ; then
> + continue
> fi
>
> - qemu="$qemu$QEMU_SUFFIX"
> - if [ "$host_family" != "$family" ] ; then
> - $BINFMT_SET
> - fi
> + $BINFMT_SET
> done
> }
>
> --
> 2.48.1
>
next prev parent reply other threads:[~2025-02-24 1:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-27 18:29 [PATCH v2 0/3] binfmt: Add --ignore-family option Andrea Bolognani
2025-01-27 18:29 ` [PATCH v2 1/3] binfmt: Shuffle things around Andrea Bolognani
2025-02-20 10:46 ` Laurent Vivier
2025-02-24 1:36 ` Alistair Francis [this message]
2025-01-27 18:29 ` [PATCH v2 2/3] binfmt: Normalize host CPU architecture Andrea Bolognani
2025-02-20 11:05 ` Laurent Vivier
2025-02-24 1:39 ` Alistair Francis
2025-02-26 21:09 ` Andrea Bolognani
2025-01-27 18:29 ` [PATCH v2 3/3] binfmt: Add --ignore-family option Andrea Bolognani
2025-02-20 11:06 ` Laurent Vivier
2025-02-28 4:24 ` Alistair Francis
2025-02-11 15:59 ` [PATCH v2 0/3] " Andrea Bolognani
2025-02-28 4:33 ` Alistair Francis
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=CAKmqyKP9XC9evZP+6RHgV9Nq_pfc+B10mXOH_mjsdirJ+AFGxQ@mail.gmail.com \
--to=alistair23@gmail.com \
--cc=abologna@redhat.com \
--cc=berrange@redhat.com \
--cc=davidlt@rivosinc.com \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).