[libvirt] [PATCH v14 39/49] extract general code of NodeDeviceReset