2018-09-05 22:15:33 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*/
|
2019-03-15 17:51:20 +03:00
|
|
|
|
|
|
|
#ifndef MIGRATION_TEST_H
|
|
|
|
#define MIGRATION_TEST_H
|
2018-09-05 22:15:33 +03:00
|
|
|
|
|
|
|
/* Common */
|
|
|
|
#define TEST_MEM_PAGE_SIZE 4096
|
|
|
|
|
|
|
|
/* x86 */
|
|
|
|
#define X86_TEST_MEM_START (1 * 1024 * 1024)
|
|
|
|
#define X86_TEST_MEM_END (100 * 1024 * 1024)
|
|
|
|
|
2018-10-09 12:51:17 +03:00
|
|
|
/* S390 */
|
|
|
|
#define S390_TEST_MEM_START (1 * 1024 * 1024)
|
|
|
|
#define S390_TEST_MEM_END (100 * 1024 * 1024)
|
|
|
|
|
2018-09-05 22:15:33 +03:00
|
|
|
/* PPC */
|
|
|
|
#define PPC_TEST_MEM_START (1 * 1024 * 1024)
|
|
|
|
#define PPC_TEST_MEM_END (100 * 1024 * 1024)
|
2024-05-30 10:44:52 +03:00
|
|
|
#define PPC_H_PUT_TERM_CHAR 0x58
|
2018-09-05 22:15:33 +03:00
|
|
|
|
2018-10-04 19:08:46 +03:00
|
|
|
/* ARM */
|
|
|
|
#define ARM_TEST_MEM_START (0x40000000 + 1 * 1024 * 1024)
|
|
|
|
#define ARM_TEST_MEM_END (0x40000000 + 100 * 1024 * 1024)
|
|
|
|
#define ARM_MACH_VIRT_UART 0x09000000
|
|
|
|
/* AArch64 kernel load address is 0x40080000, and the test memory starts at
|
|
|
|
* 0x40100000. So the maximum allowable kernel size is 512KB.
|
|
|
|
*/
|
|
|
|
#define ARM_TEST_MAX_KERNEL_SIZE (512 * 1024)
|
|
|
|
|
2019-06-04 21:16:17 +03:00
|
|
|
#endif /* MIGRATION_TEST_H */
|