#hypervisor #mshv #microsoft #bindgen

mshv-bindings

Rust FFI bindings to MSHV headers generated using Rust bindgen

11 releases (4 breaking)

new 0.5.1 May 14, 2025
0.4.0 Apr 23, 2025
0.3.4 Feb 27, 2025
0.3.2 Nov 26, 2024

#105 in FFI

Download history 1672/week @ 2025-01-23 2430/week @ 2025-01-30 1116/week @ 2025-02-06 1602/week @ 2025-02-13 2226/week @ 2025-02-20 2314/week @ 2025-02-27 1847/week @ 2025-03-06 3377/week @ 2025-03-13 2150/week @ 2025-03-20 1890/week @ 2025-03-27 2340/week @ 2025-04-03 2810/week @ 2025-04-10 2911/week @ 2025-04-17 3331/week @ 2025-04-24 3695/week @ 2025-05-01 4610/week @ 2025-05-08

15,211 downloads per month
Used in 3 crates

Apache-2.0 OR BSD-3-Clause

1.5MB
42K 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–1.7MB
~30K SLoC