Re: [PATCH v10 5/5] vfio: update live migration device status

From: Jason Gunthorpe
Date: Fri Apr 14 2023 - 08:25:44 EST


On Sat, Apr 08, 2023 at 03:42:24PM +0800, Longfang Liu wrote:
> migration debugfs needs to perform debug operations based on the
> status of the current device. If the device is not loaded or has
> stopped, debugfs does not allow operations.
>
> so, after the live migration function is executed and the device is
> turned off, the device no longer needs to be accessed. At this time,
> the status of the device needs to be set to stop.

STOP means the devices isn't functioning

An idle device that has just been reset is RUNNING by definiton.

Jason