#bindings #hypervisor #microsoft #header #ioctl #x86-64 #mshv

mshv-bindings

Rust FFI bindings to MSHV headers generated using Rust bindgen

3 releases (breaking)

new 0.3.0 Oct 15, 2024
0.2.1 Oct 15, 2024
0.1.1 Oct 15, 2024

#116 in FFI


Used in mshv-ioctls

Apache-2.0 OR BSD-3-Clause

1.5MB
51K SLoC

mshv

Microsoft Hypervisor wrappers. This repository provides two crates which are mshv-bindings and mshv-ioctls. These crates will provide the APIs and definitions to create a VMM on Microsoft Hypervisor along with other rust-vmm crates.

Supported Platforms

The mshv-{ioctls, bindings} can be used on x86_64 only.

Build

cargo build

Running the tests

Test (/dev/mshv requires root):

sudo -E ~/.cargo/bin/cargo test

Dependencies

~1.2–2MB
~34K SLoC