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