[libvirt] [PATCH 03/11] qemu: domain: Move hostdev validation into separate function