aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu/sev.h
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2018-03-08 06:48:46 -0600
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-13 12:04:03 +0100
commit54e89539670e904b0d4f0993abeb92f641c60436 (patch)
treea698d1deef86da325b1023a77dc3cfd2ac8d4a48 /include/sysemu/sev.h
parentb20e37801fc4a94ba40737541710c29c923e1c48 (diff)
downloadqemu-54e89539670e904b0d4f0993abeb92f641c60436.zip
qemu-54e89539670e904b0d4f0993abeb92f641c60436.tar.gz
qemu-54e89539670e904b0d4f0993abeb92f641c60436.tar.bz2
kvm: introduce memory encryption APIs
Inorder to integerate the Secure Encryption Virtualization (SEV) support add few high-level memory encryption APIs which can be used for encrypting the guest memory region. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: kvm@vger.kernel.org Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/sysemu/sev.h')
-rw-r--r--include/sysemu/sev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/sev.h b/include/sysemu/sev.h
index f7a6057..98c1ec8 100644
--- a/include/sysemu/sev.h
+++ b/include/sysemu/sev.h
@@ -17,4 +17,5 @@
#include "sysemu/kvm.h"
void *sev_guest_init(const char *id);
+int sev_encrypt_data(void *handle, uint8_t *ptr, uint64_t len);
#endif