Skip to content

Add AddressSpaceProvider trait for multi-process address space management#758

Open
wdcui wants to merge 1 commit intowdcui/pr3f-raw-messagefrom
wdcui/pr3h-address-space
Open

Add AddressSpaceProvider trait for multi-process address space management#758
wdcui wants to merge 1 commit intowdcui/pr3f-raw-messagefrom
wdcui/pr3h-address-space

Conversation

@wdcui
Copy link
Copy Markdown
Member

@wdcui wdcui commented Apr 7, 2026

Summary

  • Add AddressSpaceProvider trait (new file platform/address_space.rs) for per-process address space management: create_address_space, switch_address_space, destroy_address_space, EAGER_COW_ON_FORK constant.
  • Add Provider supertrait bound + AddressSpaceProvider.
  • Add stub impls in all platform crates (linux kernel, linux userland, LVBS, Windows userland) and the mock.

Stacked on #756 (RawMessageProvider) due to adjacent impl blocks in platform crates.

Split from #743.

…ment

Introduce address_space.rs with AddressSpaceProvider trait,
ForkedAddressSpace enum, and AddressSpaceError. The trait defines
create/destroy/fork/activate/with_address_space operations with
NotSupported defaults for platforms that lack multi-process support.
Add Provider supertrait bound. Implement (with defaults) for all
platform crates and mock.
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