 2fb410596c
			
		
	
	
	2fb410596c
	
	
	
		
			
			After the HYP page table rework, it is pretty easy to let the KVM code provide its own idmap, rather than expecting the kernel to provide it. It takes actually less code to do so. Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			316 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			316 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef __ASM_IDMAP_H
 | |
| #define __ASM_IDMAP_H
 | |
| 
 | |
| #include <linux/compiler.h>
 | |
| #include <asm/pgtable.h>
 | |
| 
 | |
| /* Tag a function as requiring to be executed via an identity mapping. */
 | |
| #define __idmap __section(.idmap.text) noinline notrace
 | |
| 
 | |
| extern pgd_t *idmap_pgd;
 | |
| 
 | |
| void setup_mm_for_reboot(void);
 | |
| 
 | |
| #endif	/* __ASM_IDMAP_H */
 |