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 */ 758ea30f5SMarkus Armbruster 858ea30f5SMarkus Armbruster #ifndef MIGRATION_TEST_H 958ea30f5SMarkus Armbruster #define MIGRATION_TEST_H 10e51e711bSWei Huang 11e51e711bSWei Huang /* Common */ 12e51e711bSWei Huang #define TEST_MEM_PAGE_SIZE 4096 13e51e711bSWei Huang 14e51e711bSWei Huang /* x86 */ 15e51e711bSWei Huang #define X86_TEST_MEM_START (1 * 1024 * 1024) 16e51e711bSWei Huang #define X86_TEST_MEM_END (100 * 1024 * 1024) 17e51e711bSWei Huang 185571dc82SThomas Huth /* S390 */ 195571dc82SThomas Huth #define S390_TEST_MEM_START (1 * 1024 * 1024) 205571dc82SThomas Huth #define S390_TEST_MEM_END (100 * 1024 * 1024) 215571dc82SThomas Huth 22e51e711bSWei Huang /* PPC */ 23e51e711bSWei Huang #define PPC_TEST_MEM_START (1 * 1024 * 1024) 24e51e711bSWei Huang #define PPC_TEST_MEM_END (100 * 1024 * 1024) 25*34cc54fbSNicholas Piggin #define PPC_H_PUT_TERM_CHAR 0x58 26e51e711bSWei Huang 27c02b3781SWei Huang /* ARM */ 28c02b3781SWei Huang #define ARM_TEST_MEM_START (0x40000000 + 1 * 1024 * 1024) 29c02b3781SWei Huang #define ARM_TEST_MEM_END (0x40000000 + 100 * 1024 * 1024) 30c02b3781SWei Huang #define ARM_MACH_VIRT_UART 0x09000000 31c02b3781SWei Huang /* AArch64 kernel load address is 0x40080000, and the test memory starts at 32c02b3781SWei Huang * 0x40100000. So the maximum allowable kernel size is 512KB. 33c02b3781SWei Huang */ 34c02b3781SWei Huang #define ARM_TEST_MAX_KERNEL_SIZE (512 * 1024) 35c02b3781SWei Huang 3637677d7dSMarkus Armbruster #endif /* MIGRATION_TEST_H */ 37