Re: [Qemu-devel] [PATCH v7 10/13] vfio: Add load state functions to SaveVMHandlers

2019-08-20 Thread Kirti Wankhede
On 7/23/2019 3:20 AM, Yan Zhao wrote: > On Tue, Jul 23, 2019 at 03:07:13AM +0800, Alex Williamson wrote: >> On Sun, 21 Jul 2019 23:20:28 -0400 >> Yan Zhao wrote: >> >>> On Fri, Jul 19, 2019 at 03:00:13AM +0800, Kirti Wankhede wrote: On 7/12/2019 8:22 AM, Yan Zhao wrote: > O

Re: [Qemu-devel] [PATCH v7 10/13] vfio: Add load state functions to SaveVMHandlers

2019-07-22 Thread Yan Zhao
On Tue, Jul 23, 2019 at 03:07:13AM +0800, Alex Williamson wrote: > On Sun, 21 Jul 2019 23:20:28 -0400 > Yan Zhao wrote: > > > On Fri, Jul 19, 2019 at 03:00:13AM +0800, Kirti Wankhede wrote: > > > > > > > > > On 7/12/2019 8:22 AM, Yan Zhao wrote: > > > > On Tue, Jul 09, 2019 at 05:49:17PM +080

Re: [Qemu-devel] [PATCH v7 10/13] vfio: Add load state functions to SaveVMHandlers

2019-07-22 Thread Alex Williamson
On Sun, 21 Jul 2019 23:20:28 -0400 Yan Zhao wrote: > On Fri, Jul 19, 2019 at 03:00:13AM +0800, Kirti Wankhede wrote: > > > > > > On 7/12/2019 8:22 AM, Yan Zhao wrote: > > > On Tue, Jul 09, 2019 at 05:49:17PM +0800, Kirti Wankhede wrote: > > >> Flow during _RESUMING device state: > > >> - If

Re: [Qemu-devel] [PATCH v7 10/13] vfio: Add load state functions to SaveVMHandlers

2019-07-21 Thread Yan Zhao
On Fri, Jul 19, 2019 at 03:00:13AM +0800, Kirti Wankhede wrote: > > > On 7/12/2019 8:22 AM, Yan Zhao wrote: > > On Tue, Jul 09, 2019 at 05:49:17PM +0800, Kirti Wankhede wrote: > >> Flow during _RESUMING device state: > >> - If Vendor driver defines mappable region, mmap migration region. > >> - L

Re: [Qemu-devel] [PATCH v7 10/13] vfio: Add load state functions to SaveVMHandlers

2019-07-18 Thread Kirti Wankhede
On 7/12/2019 8:22 AM, Yan Zhao wrote: > On Tue, Jul 09, 2019 at 05:49:17PM +0800, Kirti Wankhede wrote: >> Flow during _RESUMING device state: >> - If Vendor driver defines mappable region, mmap migration region. >> - Load config state. >> - For data packet, till VFIO_MIG_FLAG_END_OF_STATE is no

Re: [Qemu-devel] [PATCH v7 10/13] vfio: Add load state functions to SaveVMHandlers

2019-07-11 Thread Yan Zhao
On Tue, Jul 09, 2019 at 05:49:17PM +0800, Kirti Wankhede wrote: > Flow during _RESUMING device state: > - If Vendor driver defines mappable region, mmap migration region. > - Load config state. > - For data packet, till VFIO_MIG_FLAG_END_OF_STATE is not reached > - read data_size from packet, r

[Qemu-devel] [PATCH v7 10/13] vfio: Add load state functions to SaveVMHandlers

2019-07-09 Thread Kirti Wankhede
Flow during _RESUMING device state: - If Vendor driver defines mappable region, mmap migration region. - Load config state. - For data packet, till VFIO_MIG_FLAG_END_OF_STATE is not reached - read data_size from packet, read buffer of data_size - read data_offset from where QEMU should writ