[libvirt PATCH v2 08/22] qemu: Tweak some code