[libvirt PATCH v4 02/16] qemu: Tweak some code