rust-vmm / mshv

Crates for Microsoft Hypervisor ioctls and bindings
Apache License 2.0
29 stars 12 forks source link

Export ioctl numbers #137

Closed NunoDasNeves closed 5 months ago

NunoDasNeves commented 5 months ago

Summary of the PR

In Cloud Hypervisor, the seccomp rules have hardcoded IOCTL numbers from the various bindings crates. It would be nice to just get the IOCTL numbers from the crate itself. At the very least, it saves the time of having to compute or print out the IOCTL numbers manually when changing them or adding new ones.

Also add the MSHV_GET_VERSION_INFO IOCTL number.

Requirements

Before submitting your PR, please make sure you addressed the following requirements: