[libvirt] [PATCH 1/2] Fix error detection in device change