]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm64: config: Correctly define VMAP_VIRT_END
authorPeng Fan <van.freenix@gmail.com>
Wed, 1 Jun 2016 07:51:06 +0000 (15:51 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 17 Jun 2016 09:22:16 +0000 (10:22 +0100)
The vmap initialization code (vm_init_type) will round down
the end of the region to a page-aligned address.

On ARM64, the default vmap region is located between 1G and 2G.
Based on the initialization code, the end address is excluded
of the region.

Therefore the current definition of VMAP_VIRT_END will lead the
vmap code to not use the last 4K of the region.

Fix it by defining VMAP_VIRT_END as "VMAP_VIRT_START + GB(1)".

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/config.h

index 2d11b624c48165e5ada68bbde4b40b2c679d965e..f92c0a0548a209e473dec04e057f423612d07b4c 100644 (file)
 #define SLOT0_ENTRY_SIZE  SLOT0(1)
 
 #define VMAP_VIRT_START  GB(1)
-#define VMAP_VIRT_END    (VMAP_VIRT_START + GB(1) - 1)
+#define VMAP_VIRT_END    (VMAP_VIRT_START + GB(1))
 
 #define FRAMETABLE_VIRT_START  GB(32)
 #define FRAMETABLE_SIZE        GB(32)