Re: [PATCH 11/11] vfio: unplug failover primary device before migration

2019-10-21 Thread Jens Freimann
On Mon, Oct 21, 2019 at 09:19:20AM -0600, Alex Williamson wrote: On Fri, 18 Oct 2019 22:20:40 +0200 Jens Freimann wrote: [...] +if (!pdev->net_failover_pair_id) { +error_setg(&vdev->migration_blocker, +"VFIO device doesn't support migration"); +ret = migrate

Re: [PATCH 11/11] vfio: unplug failover primary device before migration

2019-10-21 Thread Alex Williamson
On Fri, 18 Oct 2019 22:20:40 +0200 Jens Freimann wrote: > As usual block all vfio-pci devices from being migrated, but make an > exception for failover primary devices. This is achieved by setting > unmigratable to 0 but also add a migration blocker for all vfio-pci > devices except failover prim

Re: [PATCH 11/11] vfio: unplug failover primary device before migration

2019-10-21 Thread Jens Freimann
On Mon, Oct 21, 2019 at 03:45:04PM +0200, Cornelia Huck wrote: On Fri, 18 Oct 2019 22:20:40 +0200 Jens Freimann wrote: As usual block all vfio-pci devices from being migrated, but make an exception for failover primary devices. This is achieved by setting unmigratable to 0 but also add a migra

Re: [PATCH 11/11] vfio: unplug failover primary device before migration

2019-10-21 Thread Cornelia Huck
On Fri, 18 Oct 2019 22:20:40 +0200 Jens Freimann wrote: > As usual block all vfio-pci devices from being migrated, but make an > exception for failover primary devices. This is achieved by setting > unmigratable to 0 but also add a migration blocker for all vfio-pci > devices except failover prim

[PATCH 11/11] vfio: unplug failover primary device before migration

2019-10-18 Thread Jens Freimann
As usual block all vfio-pci devices from being migrated, but make an exception for failover primary devices. This is achieved by setting unmigratable to 0 but also add a migration blocker for all vfio-pci devices except failover primary devices. These will be unplugged before migration happens by t