Skip to content

Enable Rosetta AOT caching - #779

Open
culpen90 wants to merge 2 commits into
apple:mainfrom
culpen90:changes/rosetta-aot-cache
Open

Enable Rosetta AOT caching#779
culpen90 wants to merge 2 commits into
apple:mainfrom
culpen90:changes/rosetta-aot-cache

Conversation

@culpen90

Copy link
Copy Markdown

Summary

  • Add RosettaConfiguration to choose default, custom Unix socket, abstract socket, or uncached Rosetta modes.
  • Enable the default Unix-socket Rosetta translation cache whenever Rosetta is enabled.
  • Create the guest cache socket parent directory before registering the Rosetta emulator.

Fixes #89

Validation

  • swift format lint --strict --configuration .swift-format-nolint Sources/Containerization/ContainerManager.swift Sources/Containerization/RosettaConfiguration.swift Sources/Containerization/VZVirtualMachineInstance.swift Sources/Containerization/VZVirtualMachineManager.swift Sources/Containerization/Vminitd+Rosetta.swift Tests/ContainerizationTests/RosettaConfigurationTests.swift
  • swift build
  • swift test --filter RosettaConfigurationTests

@culpen90
culpen90 marked this pull request as ready for review June 24, 2026 21:41
@arianvp

arianvp commented Aug 10, 2026

Copy link
Copy Markdown

Did you actually test if this works? I tried this a few months back and the rosettad daemon in the guest does not seem to be picking up the required socket paths (FB14580944)

@arianvp

arianvp commented Aug 10, 2026

Copy link
Copy Markdown

You're also missing starting the rosettad daemon on the guest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Rosetta AOT caching (requires FB14580944 to be fixed)

2 participants