[libvirt] [PATCH 07/12] qemu: reorder checks for safety