Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

jinankjain
Copy link
Collaborator

@jinankjain jinankjain commented Oct 18, 2023

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:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

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.

Signed-off-by: Jinank Jain <[email protected]>
Three new constants are added to the list of existing SVM exit codes:

1. I/O port emulation exit code
2. MMIO read exit code
4. MMIO write exit code

Signed-off-by: Jinank Jain <[email protected]>
This should be allowed for the time being for auto-generated bindgen
code.

Signed-off-by: Jinank Jain <[email protected]>
@russell-islam russell-islam merged commit af397ea into rust-vmm:main Oct 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants