On Tue, Dec 1, 2026 at 12:20 AM Danilo Krummrich <[email protected]> wrote:
>
> Now that pin-init supports self-referential structs, Arc is no longer
> needed just to share resources whose lifetimes are bounded by their
> owners.
>
> Use pin-init's self-referential support to share the MMIO mapping, MMU
> and firmware VM through borrows instead of Arc, avoiding their separate
> allocations and reference counts.
>
> Hide the invariant resource lifetime shared by the VM and its sections
> behind an existential lifetime that outlives 'mmu, so Firmware only needs
> a single lifetime parameter.
>
> Cc: Gary Guo <[email protected]>
> Signed-off-by: Danilo Krummrich <[email protected]>

Reviewed-by: Alice Ryhl <[email protected]>

Reply via email to