[PATCH v2 09/15] qemu: migration_cookie: Add helpers for transforming the cookie into migration params