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