Expand description
Guest and host page geometry for Darwin arm64 images on Linux.
Structs§
- Address
Space - Tracked guest VA ranges for one process (borrowed images + owned mmaps).
- Guest
Memory - Fully mapped guest image address space (slide applied).
- MapRequest
- Request to map one segment-like region from a Mach-O image.
- Mapped
Region - One mapped guest region (host-owned).
- Page
Layout - Combined host + guest geometry for one process session.
- RegRegion
Snapshot - Snapshot of a registry entry (no ownership).
Enums§
- Guest
Page Size - Guest page size policy for image planning.
- Host
Page Size - Supported host page sizes we handle explicitly.
- MapError
- Errors while mapping guest memory.
- Page
Error - Errors from page-size detection or validation.
- Remove
Outcome - Result of
AddressSpace::remove_range/remove_range.
Constants§
- DARWIN_
ARM64_ PAGE_ SIZE - Default guest page size for arm64 Darwin images (bytes).
- VM_
PROT_ EXECUTE - VM_
PROT_ READ - Darwin
VM_PROT_*bits (same numeric values as XNU). - VM_
PROT_ WRITE
Functions§
- darwin_
to_ host_ prot - Converts Darwin
VM_PROT_*to hostPROT_*. - map_
stack - Maps an anonymous RW stack region (guest VA == host VA, kernel-chosen).
- mprotect_
darwin - Restores Darwin-derived host protection on a region.
- mprotect_
rw - Temporarily makes a region read/write (for SVC patching / bind writes).
- register_
borrowed - Registers a borrowed region on the active address space.
- register_
owned - Registers an owned anonymous mapping on the active address space.
- registry_
check_ range - Validates a range against the active address space.
- registry_
clear - Clears the active address space. Owned mappings are
munmap’d. - registry_
find - Finds a covering region in the active address space.
- registry_
install - Installs
spaceas the active trap-path address space. - registry_
is_ active - True when the active space has at least one region.
- registry_
remove - Removes a range from the active address space.
- registry_
take - Takes the active address space, leaving an empty one installed.
- registry_
update_ prot - Updates protection on a region in the active address space.
- registry_
with_ active - Runs
fwith shared access to the active address space. - registry_
with_ active_ mut - Runs
fwith exclusive access to the active address space.