Crates.io | xhypervisor |
lib.rs | xhypervisor |
version | 0.2.0 |
source | src |
created_at | 2019-12-28 10:53:44.292593 |
updated_at | 2022-05-01 20:17:06.560082 |
description | Hardware-accelerated virtualization on OS X |
homepage | |
repository | https://www.github.com/RWTH-OS/xhypervisor |
max_upload_size | |
id | 192919 |
size | 97,345 |
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.
To use this library, you need
OS X Yosemite (10.10), or newer
a Intel processor with the VT-x feature or an Apple Silicon processor with virtualization support. To verify this, run and expect the following in your Terminal:
$ sysctl kern.hv_support
kern.hv_support: 1