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