History

KVM: SVM: Add support for KVM_SEV_RECEIVE_START command

The command is used to create the encryption context for an incoming SEV guest. The encryption context can be later used by the hypervisor to import the incoming data into the SEV guest memory space.

Brijesh Singh committed 5 years ago

Commit af43cbb1 parent 5569e2e3 files · +119 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/kvm.h+9−0
@@ -1755,6 +1755,15 @@ struct kvm_sev_send_update_data { · 1754 unmodified lines
1755 __u32 trans_len;1755 __u32 trans_len;
1756};1756};
1757 1757
1758struct kvm_sev_receive_start {
1759 __u32 handle;
1760 __u32 policy;
1761 __u64 pdh_uaddr;
1762 __u32 pdh_len;
1763 __u64 session_uaddr;
1764 __u32 session_len;
1765};
1766
1758#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0)1767#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0)
1759#define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1)1768#define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1)
1760#define KVM_DEV_ASSIGN_MASK_INTX (1 << 2)1769#define KVM_DEV_ASSIGN_MASK_INTX (1 << 2)