[libvirt] [PATCH] qemu_driver.c: factor out more duplication