1 /*
2  * Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
3  *
4  * This work is licensed under the terms of the GNU GPL, version 2 or later.
5  * See the COPYING file in the top-level directory.
6  */
7 #ifndef _TEST_MIGRATION_H_
8 #define _TEST_MIGRATION_H_
9 
10 /* Common */
11 #define TEST_MEM_PAGE_SIZE 4096
12 
13 /* x86 */
14 #define X86_TEST_MEM_START (1 * 1024 * 1024)
15 #define X86_TEST_MEM_END   (100 * 1024 * 1024)
16 
17 /* S390 */
18 #define S390_TEST_MEM_START (1 * 1024 * 1024)
19 #define S390_TEST_MEM_END   (100 * 1024 * 1024)
20 
21 /* PPC */
22 #define PPC_TEST_MEM_START (1 * 1024 * 1024)
23 #define PPC_TEST_MEM_END   (100 * 1024 * 1024)
24 
25 /* ARM */
26 #define ARM_TEST_MEM_START (0x40000000 + 1 * 1024 * 1024)
27 #define ARM_TEST_MEM_END   (0x40000000 + 100 * 1024 * 1024)
28 #define ARM_MACH_VIRT_UART 0x09000000
29 /* AArch64 kernel load address is 0x40080000, and the test memory starts at
30  * 0x40100000. So the maximum allowable kernel size is 512KB.
31  */
32 #define ARM_TEST_MAX_KERNEL_SIZE (512 * 1024)
33 
34 #endif /* _TEST_MIGRATION_H_ */
35