[libvirt] [PATCH v13 38/49] extract general code of NodeDeviceReAttach