RE: [PATCH 0/5] QEMU VFIO live migration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 








> -----Original Message-----
> From: Zhao Yan [mailto:yan.y.zhao@xxxxxxxxx]
> Sent: Thursday, February 21, 2019 12:08 PM
> To: Gonglei (Arei) <arei.gonglei@xxxxxxxxxx>
> Cc: cjia@xxxxxxxxxx; kvm@xxxxxxxxxxxxxxx; aik@xxxxxxxxx;
> Zhengxiao.zx@xxxxxxxxxxxxxxx; shuangtai.tst@xxxxxxxxxxxxxxx;
> qemu-devel@xxxxxxxxxx; kwankhede@xxxxxxxxxx; eauger@xxxxxxxxxx;
> yi.l.liu@xxxxxxxxx; eskultet@xxxxxxxxxx; ziye.yang@xxxxxxxxx;
> mlevitsk@xxxxxxxxxx; pasic@xxxxxxxxxxxxx; felipe@xxxxxxxxxxx;
> Ken.Xue@xxxxxxx; kevin.tian@xxxxxxxxx; dgilbert@xxxxxxxxxx;
> alex.williamson@xxxxxxxxxx; intel-gvt-dev@xxxxxxxxxxxxxxxxxxxxx;
> changpeng.liu@xxxxxxxxx; cohuck@xxxxxxxxxx; zhi.a.wang@xxxxxxxxx;
> jonathan.davies@xxxxxxxxxxx
> Subject: Re: [PATCH 0/5] QEMU VFIO live migration
> 
> On Thu, Feb 21, 2019 at 03:33:24AM +0000, Gonglei (Arei) wrote:
> >
> > > -----Original Message-----
> > > From: Zhao Yan [mailto:yan.y.zhao@xxxxxxxxx]
> > > Sent: Thursday, February 21, 2019 9:59 AM
> > > To: Gonglei (Arei) <arei.gonglei@xxxxxxxxxx>
> > > Cc: alex.williamson@xxxxxxxxxx; qemu-devel@xxxxxxxxxx;
> > > intel-gvt-dev@xxxxxxxxxxxxxxxxxxxxx; Zhengxiao.zx@xxxxxxxxxxxxxxx;
> > > yi.l.liu@xxxxxxxxx; eskultet@xxxxxxxxxx; ziye.yang@xxxxxxxxx;
> > > cohuck@xxxxxxxxxx; shuangtai.tst@xxxxxxxxxxxxxxx;
> dgilbert@xxxxxxxxxx;
> > > zhi.a.wang@xxxxxxxxx; mlevitsk@xxxxxxxxxx; pasic@xxxxxxxxxxxxx;
> > > aik@xxxxxxxxx; eauger@xxxxxxxxxx; felipe@xxxxxxxxxxx;
> > > jonathan.davies@xxxxxxxxxxx; changpeng.liu@xxxxxxxxx;
> Ken.Xue@xxxxxxx;
> > > kwankhede@xxxxxxxxxx; kevin.tian@xxxxxxxxx; cjia@xxxxxxxxxx;
> > > kvm@xxxxxxxxxxxxxxx
> > > Subject: Re: [PATCH 0/5] QEMU VFIO live migration
> > >
> > > On Thu, Feb 21, 2019 at 01:35:43AM +0000, Gonglei (Arei) wrote:
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Zhao Yan [mailto:yan.y.zhao@xxxxxxxxx]
> > > > > Sent: Thursday, February 21, 2019 8:25 AM
> > > > > To: Gonglei (Arei) <arei.gonglei@xxxxxxxxxx>
> > > > > Cc: alex.williamson@xxxxxxxxxx; qemu-devel@xxxxxxxxxx;
> > > > > intel-gvt-dev@xxxxxxxxxxxxxxxxxxxxx; Zhengxiao.zx@xxxxxxxxxxxxxxx;
> > > > > yi.l.liu@xxxxxxxxx; eskultet@xxxxxxxxxx; ziye.yang@xxxxxxxxx;
> > > > > cohuck@xxxxxxxxxx; shuangtai.tst@xxxxxxxxxxxxxxx;
> > > dgilbert@xxxxxxxxxx;
> > > > > zhi.a.wang@xxxxxxxxx; mlevitsk@xxxxxxxxxx; pasic@xxxxxxxxxxxxx;
> > > > > aik@xxxxxxxxx; eauger@xxxxxxxxxx; felipe@xxxxxxxxxxx;
> > > > > jonathan.davies@xxxxxxxxxxx; changpeng.liu@xxxxxxxxx;
> > > Ken.Xue@xxxxxxx;
> > > > > kwankhede@xxxxxxxxxx; kevin.tian@xxxxxxxxx; cjia@xxxxxxxxxx;
> > > > > kvm@xxxxxxxxxxxxxxx
> > > > > Subject: Re: [PATCH 0/5] QEMU VFIO live migration
> > > > >
> > > > > On Wed, Feb 20, 2019 at 11:56:01AM +0000, Gonglei (Arei) wrote:
> > > > > > Hi yan,
> > > > > >
> > > > > > Thanks for your work.
> > > > > >
> > > > > > I have some suggestions or questions:
> > > > > >
> > > > > > 1) Would you add msix mode support,? if not, pls add a check in
> > > > > vfio_pci_save_config(), likes Nvidia's solution.
> > > > > ok.
> > > > >
> > > > > > 2) We should start vfio devices before vcpu resumes, so we can't rely
> on
> > > vm
> > > > > start change handler completely.
> > > > > vfio devices is by default set to running state.
> > > > > In the target machine, its state transition flow is
> running->stop->running.
> > > >
> > > > That's confusing. We should start vfio devices after vfio_load_state,
> > > otherwise
> > > > how can you keep the devices' information are the same between source
> side
> > > > and destination side?
> > > >
> > > so, your meaning is to set device state to running in the first call to
> > > vfio_load_state?
> > >
> > No, it should start devices after vfio_load_state and before vcpu resuming.
> >
> 
> What about set device state to running in load_cleanup handler ?
> 

The timing is fine, but you should also think about if should set device state 
to running in failure branches when calling load_cleanup handler.

Regards,
-Gonglei



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux