#hypervisor #mshv #microsoft

mshv-bindings

Rust FFI bindings to MSHV headers generated using Rust bindgen

7 releases

0.3.4 Feb 27, 2025
0.3.3 Feb 5, 2025
0.3.2 Nov 26, 2024
0.3.1 Oct 30, 2024
0.1.1 Oct 15, 2024

#176 in Hardware support

Download history 1105/week @ 2024-12-11 801/week @ 2024-12-18 206/week @ 2024-12-25 698/week @ 2025-01-01 1683/week @ 2025-01-08 1481/week @ 2025-01-15 1507/week @ 2025-01-22 2124/week @ 2025-01-29 1537/week @ 2025-02-05 1420/week @ 2025-02-12 2440/week @ 2025-02-19 2113/week @ 2025-02-26 1946/week @ 2025-03-05 3068/week @ 2025-03-12 2502/week @ 2025-03-19 2000/week @ 2025-03-26

9,830 downloads per month
Used in 2 crates

Apache-2.0 OR BSD-3-Clause

1MB
31K 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–1.8MB
~31K SLoC