Skip to main content

Crate squib_host

Crate squib_host 

Source
Expand description

squib-host — macOS host-side primitives that back the snapshot subsystem.

Phase 5.5 lands the Mach-exception-port pager that powers --mem-backend=Uffd and --mem-backend=File postcopy restore (per 16-snapshots.md § 5). The crate is host-specific: on macOS it wires raw Mach syscalls; elsewhere it exposes the same trait surface with stub backends so the snapshot crate’s tests still build cross-platform.

The crate is the unsafe boundary alongside squib-hv and squib-net::sys.

Re-exports§

pub use block_io::set_f_nocache;
pub use pager::FilePageSource;
pub use pager::PageRequest;
pub use pager::PageSource;
pub use pager::PageSourceError;
pub use pager::Pager;
pub use pager::PagerConfig;
pub use pager::PagerError;
pub use pager::PagerStats;
pub use pager::PagerStatsSnapshot;
pub use pager::PrewarmList;
pub use pager::UffdPageSource;
pub use pager::host_page_size;
pub use pager::spawn_mach_server;

Modules§

block_io
Direct-I/O helper used by the high-IOPS virtio-block engine.
pager
Postcopy / lazy-restore pager — Mach-exception-port-driven page server.