xhypervisor

crates.io Docs.rs License

xhypervisor is a Rust library that taps into functionality that enables hardware-accelerated execution of virtual machines on OS X. It is a fork of hypervisor-rs and modified for the development of uhyve and ehyve. Derived from ahv, we added the support of Apple's Hypervisor Framework on Apple Silicon.

It binds to the Hypervisor framework on OS X, and exposes a safe Rust interface through the hypervisor module, and an unsafe foreign function interface through the xhypervisor::ffi module.

A xhypervisor derived from the 16 bits VM is used as test example, which was original published in blog post http://www.pagetable.com/?p=764.

Prerequisites

To use this library, you need

Status