Re: [RFC PATCH 3/9] vfio/pci: register a default migration region

2019-12-06 Thread Yan Zhao
On Fri, Dec 06, 2019 at 07:55:15AM +0800, Alex Williamson wrote: > On Wed, 4 Dec 2019 22:26:38 -0500 > Yan Zhao wrote: > > > Vendor driver specifies when to support a migration region through cap > > VFIO_PCI_DEVICE_CAP_MIGRATION in vfio_pci_mediate_ops->open(). > > > > If vfio-pci detects this

Re: [RFC PATCH 3/9] vfio/pci: register a default migration region

2019-12-05 Thread Alex Williamson
On Wed, 4 Dec 2019 22:26:38 -0500 Yan Zhao wrote: > Vendor driver specifies when to support a migration region through cap > VFIO_PCI_DEVICE_CAP_MIGRATION in vfio_pci_mediate_ops->open(). > > If vfio-pci detects this cap, it creates a default migration region on > behalf of vendor driver with r

[RFC PATCH 3/9] vfio/pci: register a default migration region

2019-12-04 Thread Yan Zhao
Vendor driver specifies when to support a migration region through cap VFIO_PCI_DEVICE_CAP_MIGRATION in vfio_pci_mediate_ops->open(). If vfio-pci detects this cap, it creates a default migration region on behalf of vendor driver with region len=0 and region->ops=null. Vendor driver should override