On Thu, Jun 11, 2026 at 04:43:12PM +0800, Bibo Mao wrote: > 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 <[email protected]> > --- > v1 ... v2: > 1. Add SPDX-License in __note in file tests/qtest/migration/Makefile > 2. Regerate file tests/qtest/migration/loongarch64/a-b-kernel.h with > __note information > --- > MAINTAINERS | 1 + > tests/qtest/meson.build | 3 +- > tests/qtest/migration/Makefile | 4 +- > tests/qtest/migration/bootfile.c | 4 ++ > tests/qtest/migration/bootfile.h | 4 ++ > tests/qtest/migration/framework.c | 6 +++ > tests/qtest/migration/loongarch64/Makefile | 20 ++++++++ > .../qtest/migration/loongarch64/a-b-kernel.S | 46 +++++++++++++++++++ > .../qtest/migration/loongarch64/a-b-kernel.h | 20 ++++++++ > 9 files changed, 106 insertions(+), 2 deletions(-) > create mode 100644 tests/qtest/migration/loongarch64/Makefile > create mode 100644 tests/qtest/migration/loongarch64/a-b-kernel.S > create mode 100644 tests/qtest/migration/loongarch64/a-b-kernel.h > > diff --git a/MAINTAINERS b/MAINTAINERS > index 2b5b581e17..91d72feebe 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1359,6 +1359,7 @@ F: hw/intc/loongarch_*.c > F: hw/intc/loongson_ipi_common.c > F: hw/rtc/ls7a_rtc.c > F: gdbstub/gdb-xml/loongarch*.xml > +F: tests/qtest/migration/loongarch64/ > > M68K Machines > ------------- > diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build > index 45ea497fa5..1636b8616e 100644 > --- a/tests/qtest/meson.build > +++ b/tests/qtest/meson.build > @@ -154,7 +154,8 @@ qtests_loongarch64 = qtests_filter + \ > (config_all_devices.has_key('CONFIG_LOONGARCH_VIRT') ? ['numa-test'] : []) > + \ > (unpack_edk2_blobs ? ['bios-tables-test'] : []) + \ > ['boot-serial-test', > - 'cpu-plug-test'] > + 'cpu-plug-test', > + 'migration-test'] > > qtests_m68k = ['boot-serial-test'] + \ > qtests_filter > diff --git a/tests/qtest/migration/Makefile b/tests/qtest/migration/Makefile > index c183b69941..626e3974f7 100644 > --- a/tests/qtest/migration/Makefile > +++ b/tests/qtest/migration/Makefile > @@ -5,7 +5,7 @@ > # See the COPYING file in the top-level directory. > # > > -TARGET_LIST = i386 aarch64 s390x ppc64 > +TARGET_LIST = i386 aarch64 s390x ppc64 loongarch64 > > SRC_PATH = ../../../.. > > @@ -23,6 +23,8 @@ help: > @echo " Possible targets are: $(TARGET_LIST)" > > override define __note > +/* SPDX-License-Identifier: GPL-2.0-or-later */
Maybe this'll need a regeneration of headers just to inject this line all over.. I'll do that when I pick this up. Thanks, -- Peter Xu
