Files
qemu-reims-vgpu/tests/qtest/migration/bootfile.h
T
Bibo Mao 94a75309f9 tests/qtest/migration: Add migration test on loongarch
Add migration qtest on loongarch64 system, the test passes to run with
the following result:
  qemu:qtest+qtest-loongarch64/qtest-loongarch64/migration-test OK 15.94s 9 subtests passed

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Acked-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260611084312.70042-1-maobibo@loongson.cn
Signed-off-by: Peter Xu <peterx@redhat.com>
2026-06-22 17:08:48 -04:00

56 lines
1.5 KiB
C

/*
* 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.
*/
#ifndef BOOTFILE_H
#define BOOTFILE_H
/*
* This file is included from qtest, but also from the assembly code
* that generates the header file containing the guest workload. Don't
* expose the function declarations and non-standard types to it.
*/
#ifdef __ASSEMBLER__
#define MIGRATION_GUEST_CODE
#endif
/* Common */
#define TEST_MEM_PAGE_SIZE 4096
/* x86 */
#define X86_TEST_MEM_START (1 * 1024 * 1024)
#define X86_TEST_MEM_END (100 * 1024 * 1024)
/* S390 */
#define S390_TEST_MEM_START (1 * 1024 * 1024)
#define S390_TEST_MEM_END (100 * 1024 * 1024)
/* PPC */
#define PPC_TEST_MEM_START (1 * 1024 * 1024)
#define PPC_TEST_MEM_END (100 * 1024 * 1024)
#define PPC_H_PUT_TERM_CHAR 0x58
/* 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)
/* LoongArch64 */
#define LOONGARCH_TEST_MEM_START (32 * 1024 * 1024)
#define LOONGARCH_TEST_MEM_END (100 * 1024 * 1024)
#ifndef MIGRATION_GUEST_CODE
void bootfile_delete(void);
char *bootfile_create(const char *arch, const char *dir, bool suspend_me);
char *bootfile_get(void);
#endif
#endif /* BOOTFILE_H */