On 11/6/26 10:43, 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/tests/qtest/migration/loongarch64/Makefile 
b/tests/qtest/migration/loongarch64/Makefile
new file mode 100644
index 0000000000..3c8cfeee86
--- /dev/null
+++ b/tests/qtest/migration/loongarch64/Makefile
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# To specify cross compiler prefix, use CROSS_PREFIX=
+#   $ make CROSS_PREFIX=loongarch64-linux-gnu-
+
+.PHONY: all clean
+all: a-b-kernel.h
+
+a-b-kernel.h: loongarch64.kernel
+       echo "$$__note" > $@
+       xxd -i $< | sed -e 's/.*int.*//' >> $@

 xxd -g4 -e -i ...

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to