[libvirt] [PATCH 5/5] qemu: Avoid duplicate resume events and state changes