qemu/tests/qtest/migration
Li Zhijian 7b2e4f788d qtest/migration/rdma: Enforce RLIMIT_MEMLOCK >= 128MB requirement
Ensure successful migration over RDMA by verifying that RLIMIT_MEMLOCK is
set to at least 128MB. This allocation is necessary due to the requirement
to pin significant portions of guest memory, typically exceeding 100MB
in this test, while the remainder is transmitted as compressed zero pages.

Otherwise, it will fail with:
stderr:
qemu-system-x86_64: cannot get rkey
qemu-system-x86_64: error while loading state section id 2(ram)
qemu-system-x86_64: load of migration failed: Operation not permitted
qemu-system-x86_64: rdma migration: recv polling control error!
qemu-system-x86_64: RDMA is in an error state waiting migration to abort!
qemu-system-x86_64: failed to save SaveStateEntry with id(name): 2(ram): -1
qemu-system-x86_64: Channel error: Operation not permitted

Reported-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Link: https://lore.kernel.org/r/20250509014211.1272640-1-lizhijian@fujitsu.com
Signed-off-by: Peter Xu <peterx@redhat.com>
2025-05-20 11:26:32 -04:00
..
aarch64 tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
i386 tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
ppc64 tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
s390x tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
bootfile.c tests/qtest/migration: Move common test code 2024-12-12 10:25:40 -03:00
bootfile.h tests/qtest/migration: Move common test code 2024-12-12 10:25:40 -03:00
compression-tests.c tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
cpr-tests.c tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
file-tests.c tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
framework.c qtest: introduce qtest_init_ext 2025-05-09 16:14:30 -03:00
framework.h tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
Makefile tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
migration-qmp.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
migration-qmp.h tests/qtest: enhance migration channels 2025-01-29 11:56:39 -03:00
migration-util.c tests/qtest/migration: Introduce migration_test_add_suffix 2025-02-14 15:19:06 -03:00
migration-util.h tests/qtest/migration: Introduce migration_test_add_suffix 2025-02-14 15:19:06 -03:00
misc-tests.c tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
postcopy-tests.c tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
precopy-tests.c qtest/migration/rdma: Enforce RLIMIT_MEMLOCK >= 128MB requirement 2025-05-20 11:26:32 -04:00
tls-tests.c tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00