]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/qtest/migration: Move ufd_version_check to utils
authorFabiano Rosas <farosas@suse.de>
Wed, 27 Nov 2024 18:28:51 +0000 (15:28 -0300)
committerFabiano Rosas <farosas@suse.de>
Thu, 12 Dec 2024 13:25:40 +0000 (10:25 -0300)
commit124a3c58b82ad8e3662711f4deca281d81d5d56a
tree898e17b9ebfc6f3d38aa52225a6ec21a17990bd7
parentb7d7f723a9853a68a648075a1f2ab96d410e929e
tests/qtest/migration: Move ufd_version_check to utils

Move ufd_version_check() to migration-util.c file. This is a helper
function that is used during tests definition so it should be
available outside of migration-test.c

Since the function is moving to another file, change it to stop
accessing the global uffd_feature_thread_id and take it as argument
instead.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/migration-test.c
tests/qtest/migration/migration-util.c
tests/qtest/migration/migration-util.h