[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] binfmt: Don't consider riscv{32,64} part of the same family
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH] binfmt: Don't consider riscv{32,64} part of the same family |
Date: |
Wed, 4 Dec 2024 10:17:12 +0000 |
User-agent: |
Mutt/2.2.13 (2024-03-09) |
On Tue, Dec 03, 2024 at 07:57:14AM -0600, Richard Henderson wrote:
> On 12/3/24 04:35, Peter Maydell wrote:
> > On Tue, 3 Dec 2024 at 10:19, Daniel P. Berrangé <berrange@redhat.com> wrote:
> > > Separatley this from patch, we should also consider whether
> > > it is time to do the same for aarch64/arm7.
> > >
> > > If I look at this page:
> > >
> > > https://gpages.juszkiewicz.com.pl/arm-socs-table/arm-socs.html
> > >
> > > and sort by 'announced' to see msot recent CPUs first, then
> > > almost all of them have "NO" in the "aarch32 support" column.
> > >
> > > IOW, on modern aarch64 CPUs, qemu-arm is the only viable way
> > > to run 32-bit usermode binaries AFAICT, and suggests we ought
> > > to be creating a binfmt rule for that on aarch64 hosts.
> >
> > What happens if you have a host CPU that *does* support 32-bit
> > natively and you also register the binfmt rule? Does the
> > host kernel prefer to execute natively or does it invoke
> > QEMU? I don't think we want to roll out something that
> > silently downgrades native execution to emulation...
>
> The registered rule applies and the kernel invokes qemu.
This is all quiet difficult from a distro POV, but not QEMU's fault.
We want to install the binfmt rules in a way that we "do the right thing"
regardless of hardware out of the box.
The systemd logic for loading binfmt rules is unconditional, loading
everything from /usr/lib/binfmt.d, but we need a way to make things
conditional on the lack of support for aarch32 on the currently running
platform.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH] binfmt: Don't consider riscv{32,64} part of the same family, Andrea Bolognani, 2024/12/03
- Re: [PATCH] binfmt: Don't consider riscv{32,64} part of the same family, Philippe Mathieu-Daudé, 2024/12/03
- Re: [PATCH] binfmt: Don't consider riscv{32, 64} part of the same family, Andrea Bolognani, 2024/12/03
- Re: [PATCH] binfmt: Don't consider riscv{32,64} part of the same family, Daniel P . Berrangé, 2024/12/03
- Re: [PATCH] binfmt: Don't consider riscv{32, 64} part of the same family, Peter Maydell, 2024/12/03
- Re: [PATCH] binfmt: Don't consider riscv{32,64} part of the same family, Richard Henderson, 2024/12/03
- Re: [PATCH] binfmt: Don't consider riscv{32,64} part of the same family,
Daniel P . Berrangé <=
- Re: [PATCH] binfmt: Don't consider riscv{32,64} part of the same family, Laurent Vivier, 2024/12/05
Re: [PATCH] binfmt: Don't consider riscv{32,64} part of the same family, Laurent Vivier, 2024/12/04