[RFC PATCH 10/11] KVM: selftests: Generalize migration functions from sev_migrate_tests.c