#microsoft #hypervisor #mshv

mshv-bindings

Rust FFI bindings to MSHV headers generated using Rust bindgen

6 releases

new 0.3.3 Feb 5, 2025
0.3.2 Nov 26, 2024
0.3.1 Oct 30, 2024
0.2.1 Oct 15, 2024
0.1.1 Oct 15, 2024

#559 in Unix APIs

Download history 839/week @ 2024-10-21 1126/week @ 2024-10-28 2662/week @ 2024-11-04 1125/week @ 2024-11-11 1332/week @ 2024-11-18 949/week @ 2024-11-25 1361/week @ 2024-12-02 1212/week @ 2024-12-09 1043/week @ 2024-12-16 303/week @ 2024-12-23 440/week @ 2024-12-30 1028/week @ 2025-01-06 1741/week @ 2025-01-13 1527/week @ 2025-01-20 1947/week @ 2025-01-27 1909/week @ 2025-02-03

7,196 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.3–2MB
~32K SLoC