[PATCH 13/19] qemu: migration_cookie: Add helpers for transforming the cookie into migration params