Skip to content

Commit

Permalink
mshv-bindings: Add new SVM exit code
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jinankjain authored and Jinank Jain committed Oct 18, 2023
1 parent dfe33f0 commit 602d378
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mshv-bindings/src/snp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ pub const SVM_EXITCODE_HV_DOORBELL_PAGE: u32 = 2147483668;
pub const SVM_EXITCODE_SNP_GUEST_REQUEST: u32 = 2147483665;
pub const SVM_EXITCODE_SNP_EXTENDED_GUEST_REQUEST: u32 = 2147483666;
pub const SVM_EXITCODE_SNP_AP_CREATION: u32 = 2147483667;
pub const SVM_EXITCODE_IOIO_PROT: u32 = 123;
pub const SVM_EXITCODE_MMIO_READ: u32 = 2147483649;
pub const SVM_EXITCODE_MMIO_WRITE: u32 = 2147483650;
pub const SVM_NAE_HV_DOORBELL_PAGE_GET_PREFERRED: u32 = 0;
pub const SVM_NAE_HV_DOORBELL_PAGE_SET: u32 = 1;
pub const SVM_NAE_HV_DOORBELL_PAGE_QUERY: u32 = 2;
Expand Down

0 comments on commit 602d378

Please sign in to comment.