summary refs log tree commit diff stats
path: root/accel/stubs/kvm-stub.c
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 /accel/stubs/kvm-stub.c
parentb20e37801fc4a94ba40737541710c29c923e1c48 (diff)
downloadfocaccia-qemu-54e89539670e904b0d4f0993abeb92f641c60436.tar.gz
focaccia-qemu-54e89539670e904b0d4f0993abeb92f641c60436.zip
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 'accel/stubs/kvm-stub.c')
-rw-r--r--accel/stubs/kvm-stub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/accel/stubs/kvm-stub.c b/accel/stubs/kvm-stub.c
index f83192d6f6..02d5170031 100644
--- a/accel/stubs/kvm-stub.c
+++ b/accel/stubs/kvm-stub.c
@@ -110,6 +110,11 @@ bool kvm_memcrypt_enabled(void)
     return false;
 }
 
+int kvm_memcrypt_encrypt_data(uint8_t *ptr, uint64_t len)
+{
+  return 1;
+}
+
 #ifndef CONFIG_USER_ONLY
 int kvm_irqchip_add_msi_route(KVMState *s, int vector, PCIDevice *dev)
 {