[PATCH 12/17] qemu: domain: Extract preparation of hostdev specific data to a separate function