Re: [PATCH v3 14/17] vfio/migration: Reset device if setting recover state fails

2022-11-20 Thread Avihai Horon
On 17/11/2022 20:18, Alex Williamson wrote: External email: Use caution opening links or attachments On Thu, 17 Nov 2022 19:11:47 +0200 Avihai Horon wrote: On 16/11/2022 20:36, Alex Williamson wrote: External email: Use caution opening links or attachments On Thu, 3 Nov 2022 18:16:17

Re: [PATCH v3 14/17] vfio/migration: Reset device if setting recover state fails

2022-11-17 Thread Alex Williamson
On Thu, 17 Nov 2022 19:11:47 +0200 Avihai Horon wrote: > On 16/11/2022 20:36, Alex Williamson wrote: > > External email: Use caution opening links or attachments > > > > > > On Thu, 3 Nov 2022 18:16:17 +0200 > > Avihai Horon wrote: > > > >> If vfio_migration_set_state() fails to set the

Re: [PATCH v3 14/17] vfio/migration: Reset device if setting recover state fails

2022-11-17 Thread Avihai Horon
On 16/11/2022 20:36, Alex Williamson wrote: External email: Use caution opening links or attachments On Thu, 3 Nov 2022 18:16:17 +0200 Avihai Horon wrote: If vfio_migration_set_state() fails to set the device in the requested state it tries to put it in a recover state. If setting the

Re: [PATCH v3 14/17] vfio/migration: Reset device if setting recover state fails

2022-11-16 Thread Alex Williamson
On Thu, 3 Nov 2022 18:16:17 +0200 Avihai Horon wrote: > If vfio_migration_set_state() fails to set the device in the requested > state it tries to put it in a recover state. If setting the device in > the recover state fails as well, hw_error is triggered and the VM is > aborted. > > To improve

[PATCH v3 14/17] vfio/migration: Reset device if setting recover state fails

2022-11-03 Thread Avihai Horon
If vfio_migration_set_state() fails to set the device in the requested state it tries to put it in a recover state. If setting the device in the recover state fails as well, hw_error is triggered and the VM is aborted. To improve user experience and avoid VM data loss, reset the device with