[libvirt] [PATCH v2 09/24] qemu: Tweak index number checking