mbox series

[v5,0/3] Add migration test for loongarch64

Message ID 20240511034220.3030560-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series Add migration test for loongarch64 | expand

Message

Bibo Mao May 11, 2024, 3:42 a.m. UTC
Migration test case is added for loongarch64 here. Since compat machine
type is required for migration test case, also compat machine qemu 9.1
is added for loongarch virt machine.

Migration test case passes to run in both tcg and kvm mode with the
patch, 54 migration subtests passes in 188 seconds.

---
v4 ... v5:
  1. Rename loongarch virt compat qemu 9.0 with 9.1
  2. Remove default memory size setting and minimum memory size checking

v3 ... v4:
  1. Rename VIRT_MACHINE with LOONGARCH_VIRT_MACHINE since other
architectures have the same machine type.

v2 ... v3:
  1. Refresh the patch based on the latest qemu version, solve the
confliction issue.

v1 ... v2:
  1. Keep the default memory size unchanged with 1GB, only modify minimum
memory size with 256MB
  2. Remove tab char in file tests/migration/loongarch64/a-b-kernel.S
---
Bibo Mao (3):
  hw/loongarch: Add compat machine for 9.1
  hw/loongarch: Remove minimum and default memory size
  tests: Add migration test for loongarch64

 hw/loongarch/virt.c                      | 66 +++++++++++++++++-------
 tests/migration/Makefile                 |  2 +-
 tests/migration/loongarch64/Makefile     | 18 +++++++
 tests/migration/loongarch64/a-b-kernel.S | 49 ++++++++++++++++++
 tests/migration/loongarch64/a-b-kernel.h | 16 ++++++
 tests/migration/migration-test.h         |  3 ++
 tests/qtest/meson.build                  |  2 +-
 tests/qtest/migration-test.c             | 10 ++++
 8 files changed, 146 insertions(+), 20 deletions(-)
 create mode 100644 tests/migration/loongarch64/Makefile
 create mode 100644 tests/migration/loongarch64/a-b-kernel.S
 create mode 100644 tests/migration/loongarch64/a-b-kernel.h


base-commit: dafec285bdbfe415ac6823abdc510e0b92c3f094