KVM: SVM: Add KVM_SEND_UPDATE_DATA command
The command is used for encrypting the guest memory region using the encryption context created with KVM_SEV_SEND_START. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Joerg Roedel <joro@8bytes.org> Cc: Borislav Petkov <bp@suse.de> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: x86@kernel.org Cc: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reviewed-by : Steve Rutherford <srutherford@google.com> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> Signed-off-by: Ashish Kalra <ashish.kalra@amd.com> Message-Id: <d6a6ea740b0c668b30905ae31eac5ad7da048bb3.1618498113.git.ashish.kalra@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
4cfdd47d6d
commit
d3d1af85e2
@@ -320,6 +320,34 @@ Returns: 0 on success, -negative on error
|
||||
__u32 session_len;
|
||||
};
|
||||
|
||||
12. KVM_SEV_SEND_UPDATE_DATA
|
||||
----------------------------
|
||||
|
||||
The KVM_SEV_SEND_UPDATE_DATA command can be used by the hypervisor to encrypt the
|
||||
outgoing guest memory region with the encryption context creating using
|
||||
KVM_SEV_SEND_START.
|
||||
|
||||
If hdr_len or trans_len are zero on entry, the length of the packet header and
|
||||
transport region are written to hdr_len and trans_len respectively, and all
|
||||
other fields are not used.
|
||||
|
||||
Parameters (in): struct kvm_sev_send_update_data
|
||||
|
||||
Returns: 0 on success, -negative on error
|
||||
|
||||
::
|
||||
|
||||
struct kvm_sev_launch_send_update_data {
|
||||
__u64 hdr_uaddr; /* userspace address containing the packet header */
|
||||
__u32 hdr_len;
|
||||
|
||||
__u64 guest_uaddr; /* the source memory region to be encrypted */
|
||||
__u32 guest_len;
|
||||
|
||||
__u64 trans_uaddr; /* the destination memory region */
|
||||
__u32 trans_len;
|
||||
};
|
||||
|
||||
References
|
||||
==========
|
||||
|
||||
|
||||
Reference in New Issue
Block a user