mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	 75d090fd16
			
		
	
	
		75d090fd16
		
	
	
	
	
		
			
			Hookup TDX-specific code to accept memory. Accepting the memory is done with ACCEPT_PAGE module call on every page in the range. MAP_GPA hypercall is not required as the unaccepted memory is considered private already. Extract the part of tdx_enc_status_changed() that does memory acceptance in a new helper. Move the helper tdx-shared.c. It is going to be used by both main kernel and decompressor. [ bp: Fix the INTEL_TDX_GUEST=y, KVM_GUEST=n build. ] Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230606142637.5171-10-kirill.shutemov@linux.intel.com
		
			
				
	
	
		
			3 lines
		
	
	
		
			58 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
		
			58 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "error.h"
 | |
| #include "../../coco/tdx/tdx-shared.c"
 |