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>
		
			
				
	
	
		
			27 lines
		
	
	
		
			478 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			478 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * QEMU SEV stub
 | 
						|
 *
 | 
						|
 * Copyright Advanced Micro Devices 2018
 | 
						|
 *
 | 
						|
 * Authors:
 | 
						|
 *      Brijesh Singh <brijesh.singh@amd.com>
 | 
						|
 *
 | 
						|
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
 | 
						|
 * See the COPYING file in the top-level directory.
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#include "qemu/osdep.h"
 | 
						|
#include "qemu-common.h"
 | 
						|
#include "sysemu/sev.h"
 | 
						|
 | 
						|
int sev_encrypt_data(void *handle, uint8_t *ptr, uint64_t len)
 | 
						|
{
 | 
						|
    abort();
 | 
						|
}
 | 
						|
 | 
						|
void *sev_guest_init(const char *id)
 | 
						|
{
 | 
						|
    return NULL;
 | 
						|
}
 |