Skip to content

Run dynamically linked macOS guests on a private shared-cache instance - #1892

Open
Sangho Lee (sangho2) wants to merge 3 commits into
uliteboxfrom
sanghle/ulitebox/sep_libsys-4-private-cache-runtime
Open

Sangho Lee (sangho2) wants to merge 3 commits into
uliteboxfrom
sanghle/ulitebox/sep_libsys-4-private-cache-runtime

Conversation

@sangho2

@sangho2 Sangho Lee (sangho2) commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR runs dynamically linked macOS executables with the macOS host's unmodified dyld. The macOS platform locates the host's shared cache, and the shim gives each guest a private instance of it by mapping the cache files privately, rewriting the closure's code before making it executable, and rebasing DATA on demand.

@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/sep_libsys-4-private-cache-runtime branch 9 times, most recently from fe81845 to 9f6c8b2 Compare November 17, 2026 19:55
@sangho2
Sangho Lee (sangho2) marked this pull request as ready for review November 18, 2026 04:12
@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/sep_libsys-4-private-cache-runtime branch from 9f6c8b2 to 5449e25 Compare November 18, 2026 20:05
@github-actions

Copy link
Copy Markdown

🤖 SemverChecks 🤖 ⚠️ Potential breaking API changes detected ⚠️

Click for details
--- failure constructible_struct_adds_field: struct exhaustively constructible through public API adds field ---

Description:
A pub struct that could be exhaustively constructed with a literal using only public API has a new pub field, breaking existing exhaustive literals.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.51.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field MachoParsedFile.dependencies in /home/runner/work/litebox/litebox/litebox_common_macos/src/loader.rs:95
  field CacheImage.has_data_in_code in /home/runner/work/litebox/litebox/litebox_common_macos/src/shared_cache.rs:848

--- failure enum_no_repr_variant_discriminant_changed: enum variant had its discriminant change value ---

Description:
The enum's variant had its discriminant value change. This breaks downstream code that used its value via a numeric cast like `as isize`.
        ref: https://doc.rust-lang.org/reference/items/enumerations.html#assigning-discriminant-values
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.51.0/src/lints/enum_no_repr_variant_discriminant_changed.ron

Failed in:
  variant SyscallRequest::MachAbsoluteTime 53 -> 54 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:653
  variant SyscallRequest::MachTimebaseInfo 54 -> 55 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:654
  variant SyscallRequest::MachWaitUntil 55 -> 56 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:657
  variant SyscallRequest::MachAbsoluteTime 53 -> 54 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:653
  variant SyscallRequest::MachTimebaseInfo 54 -> 55 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:654
  variant SyscallRequest::MachWaitUntil 55 -> 56 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:657

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.51.0/src/lints/enum_variant_added.ron

Failed in:
  variant MachoLoaderError:SharedCache in /home/runner/work/litebox/litebox/litebox_common_macos/src/loader.rs:74
  variant SyscallRequest:SharedRegionMapAndSlide2Np in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:647
  variant SyscallRequest:SharedRegionMapAndSlide2Np in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:647

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.

1 participant