[libvirt] [PATCHv2] qemu: fix not update weight in def after success