[libvirt PATCH v2 03/17] qemu: Tweak some code