[PATCH 4/5] qemu: put vhost-user code that's special for passt in a helper function