[libvirt] [RFC PATCH 02/12] qemu: Tweak index number checking