Page MenuHomeFreeBSD

linux(4): Add compat.linux32.true_i386_emulation knob.
ClosedPublic

Authored by dchagin on Mar 29 2022, 4:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 4 2024, 4:12 AM
Unknown Object (File)
May 4 2024, 4:12 AM
Unknown Object (File)
May 4 2024, 4:12 AM
Unknown Object (File)
May 4 2024, 4:12 AM
Unknown Object (File)
May 4 2024, 4:12 AM
Unknown Object (File)
Apr 29 2024, 8:12 AM
Unknown Object (File)
Apr 20 2024, 7:09 PM
Unknown Object (File)
Mar 7 2024, 6:14 PM

Details

Summary

Historically 32-bit Linuxulator under amd64 emulated the real i386
behaviour. 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 Lunuxulator syscall). So, add a knob to
allow nice guys like me swith the behaviour and use i386 Linux binaries
on amd64.
Set knob to the new behaviour as I think this is common to the modern
Linux distros.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste added inline comments.
share/man/man4/linux.4
151

typo, binary

pauamma_gundo.com added inline comments.
share/man/man4/linux.4
149–151

Spelling, some tweaks to wording for clarity, line breaks between sentences.

Manual page English and markup LGTM. Can't speak for source code or consistency with it.

This revision is now accepted and ready to land.Mar 29 2022, 5:32 PM

Not a strong objection but I think the name true_i386_emulation is a bit strange. Maybe just drop "true", or "emulate_i386" or "emulate_32bit"?

aha, agree, fixed, thanks Ed

This revision now requires review to proceed.Mar 31 2022, 12:06 PM
This revision is now accepted and ready to land.Mar 31 2022, 12:47 PM