[libvirt] [PATCH] Fix bug on setting both weight and device-weights at the same time