rust-vmm / mshv

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

mshv-bindings: Add new constants for SEV-SNP #118

Closed jinankjain closed 11 months ago

jinankjain commented 11 months ago

Summary of the PR

These constants represents the feature bitmap for the hypervisor supported features.

Currently we only support two features and thus I have added only those two constants.

The feature bitmap is documented in AMD's SEV-SNP GHCB handling manual. https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf Please refer to Table 1 on page 13.

Requirements

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