[libvirt] [PATCHv2 4/4] qemu: fix a error coverd issue in 2 place