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)
Wed, Oct 30, 12:03 PM
Unknown Object (File)
Oct 9 2024, 9:07 PM
Unknown Object (File)
Oct 2 2024, 9:31 PM
Unknown Object (File)
Oct 2 2024, 12:10 PM
Unknown Object (File)
Oct 1 2024, 3:18 PM
Unknown Object (File)
Sep 30 2024, 4:33 AM
Unknown Object (File)
Sep 24 2024, 6:14 AM
Unknown Object (File)
Sep 23 2024, 4:09 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44919
Build 41807: arc lint + arc unit

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