Skip to content

Commit

Permalink
Add ioctl number for KVM_MEMORY_ENCRYPT_OP
Browse files Browse the repository at this point in the history
This ioctl is used for handling platform encrypted VMs. e.g. for AMD SEV
or for Intel TDX. As it is platform dependent the input parameter is an
opaque platform dependent type.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
  • Loading branch information
rbradford authored and alxiord committed Feb 8, 2021
1 parent e147023 commit 6c7cb08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion coverage_config_x86_64.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"coverage_score": 91.3,
"coverage_score": 91.2,
"exclude_path": "",
"crate_features": ""
}
3 changes: 3 additions & 0 deletions src/kvm_ioctls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ ioctl_ior_nr!(KVM_GET_PIT2, KVMIO, 0x9f, kvm_pit_state2);
/* Available with KVM_CAP_PIT_STATE2 */
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
ioctl_iow_nr!(KVM_SET_PIT2, KVMIO, 0xa0, kvm_pit_state2);
/* KVM_MEMORY_ENCRYPT_OP. Takes opaque platform dependent type: i.e. TDX or SEV */
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
ioctl_iowr_nr!(KVM_MEMORY_ENCRYPT_OP, KVMIO, 0xba, std::os::raw::c_ulong);

// Ioctls for VCPU fds.

Expand Down

0 comments on commit 6c7cb08

Please sign in to comment.