oslib-posix: Align to permit transparent hugepages on ARM Linux
ARM Linux (like x86-64 Linux) can use transparent hugepages for KVM if memory blocks are 2MiB aligned; set QEMU_VMALLOC_ALIGN accordingly. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
		
							parent
							
								
									00115976bb
								
							
						
					
					
						commit
						2e07b297e0
					
				| @ -35,7 +35,7 @@ | ||||
| extern int daemon(int, int); | ||||
| #endif | ||||
| 
 | ||||
| #if defined(__linux__) && defined(__x86_64__) | ||||
| #if defined(__linux__) && (defined(__x86_64__) || defined(__arm__)) | ||||
|    /* Use 2 MiB alignment so transparent hugepages can be used by KVM.
 | ||||
|       Valgrind does not support alignments larger than 1 MiB, | ||||
|       therefore we need special code which handles running on Valgrind. */ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Peter Maydell
						Peter Maydell