> From: Brett Creeley <brett.creeley@xxxxxxx> > Sent: Wednesday, February 28, 2024 8:32 AM > > The current logic for handling resets is more complicated than it needs > to be. The deferred_reset flag is used to indicate a reset is needed > and the deferred_reset_state is the requested, post-reset, state. The > source of the requested reset isn't immediately obvious. Improve > readability by replacing deferred_reset_state with deferred_reset_type, > which can be either PDS_VFIO_DEVICE_RESET (initiated/requested by the > DSC) or PDS_VFIO_HOST_RESET (initiated/requested by the VMM). > > Signed-off-by: Brett Creeley <brett.creeley@xxxxxxx> > Reviewed-by: Shannon Nelson <shannon.nelson@xxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>