HomeFreeBSD

linux(4): Add compat.linux32.emulate_i386 knob.

Description

linux(4): Add compat.linux32.emulate_i386 knob.

Historically 32-bit Linuxulator under amd64 emulated the real i386
behavior. Since 3d8dd983 the old i386 Linux world can't be used under
amd64 Linuxulator as it don't know anything about amd64 machine (which
is returned now by newuname() syscall). So, add a knob to allow to swith
the behavior and use i386 Linux binaries on amd64.
Set knob to the new behavior as I think this is common to the modern
Linux distros.

Reviewed by: Pau Amma (doc), emaste
Differential revision: https://reviews.freebsd.org/D34708
MFC after: 2 weeks

Details

Provenance
dchaginAuthored on Mar 31 2022, 6:01 PM
Reviewer
emaste
Differential Revision
D34708: linux(4): Add compat.linux32.true_i386_emulation knob.
Parents
rG099fa2feb36f: linux(4): Fixup miscalculation of d_off of struct dirent in getdents() syscalls.
Branches
Unknown
Tags
Unknown