#microsoft #hypervisor #mshv

mshv-bindings

Rust FFI bindings to MSHV headers generated using Rust bindgen

5 unstable releases

0.3.2 Nov 26, 2024
0.3.1 Oct 30, 2024
0.3.0 Oct 15, 2024
0.2.1 Oct 15, 2024
0.1.1 Oct 15, 2024

#591 in Unix APIs

Download history 839/week @ 2024-10-13 837/week @ 2024-10-20 1098/week @ 2024-10-27 2690/week @ 2024-11-03 1136/week @ 2024-11-10 1294/week @ 2024-11-17 973/week @ 2024-11-24 1314/week @ 2024-12-01 1266/week @ 2024-12-08 1050/week @ 2024-12-15 277/week @ 2024-12-22 413/week @ 2024-12-29 1015/week @ 2025-01-05 1779/week @ 2025-01-12 1486/week @ 2025-01-19

4,696 downloads per month
Used in 2 crates

Apache-2.0 OR BSD-3-Clause

1MB
23K 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.3–2MB
~33K SLoC