Skip to content

Support for Apple’s TSO patch? #2865

@eddyg

Description

@eddyg

Description

Wondering about the possibility of having templates for things like Ubuntu with Apple’s TSO patch pre-applied to improve performance of x86 workloads:

x86 CPUs implement a stricter memory modern than ARM64 (TSO). For this reason, x86 emulation on baseline ARM64 systems requires very expensive memory model emulation. Having hardware that supports this natively is therefore very attractive. Such hardware, in fact, exists. This patch series adds support for userspace to identify when TSO is available and toggle it on, if supported.

Apple tried upstreaming these kernel patches, as did Hector Martin of Asahi Linux, but it was rejected.

I could be wrong, but since this isn’t in the Linux kernel, it seems taking advantage of this feature (and of course calling prctl to enable it) now rests elsewhere. I’d be surprised if OrbStack isn’t already taking advantage of this.

Any chance pre-patched kernels can be made available for Lima, for the typical, default “Docker VM” scenario?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions