Skip to main content

host_addr

Function host_addr 

Source
pub fn host_addr(addr: usize) -> String
Expand description

Wrap a host memory address so canonicalize_addresses_in_line will canonicalize it. Producers that print a genuinely host-specific pointer (one that varies run-to-run, e.g. a supervisor-side allocation) should emit it via this helper – <hostaddr 0x7fcfb7e7d450> – instead of a bare 0x... literal. Only marked addresses are canonicalized, so reproducible hex (syscall arguments, guest memory ranges, digests) is compared exactly.

Command bootstrap logs use this marker for proven launcher-image pointers before the first successful exec. Guest pointers, syscall scalars, and addresses without that provenance remain exact. Marking an address preserves its identity and aliasing through the per-run ordinal mapping below.