linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC
@ 2015-11-24 13:38 Lan Tianyu
       [not found] ` <1448372298-28386-1-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 40+ messages in thread
From: Lan Tianyu @ 2015-11-24 13:38 UTC (permalink / raw)
  To: a.motakis, alex.williamson, b.reynal, bhelgaas, carolyn.wyborny,
	donald.c.skidmore, eddie.dong, nrupal.jani, agraf, kvm, pbonzini,
	qemu-devel, emil.s.tantilov, gerlitz.or, mark.d.rustad, mst,
	eric.auger, intel-wired-lan, jeffrey.t.kirsher, jesse.brandeburg,
	john.ronciak, linux-api, linux-kernel, matthew.vick,
	mitch.a.williams, netdev, shannon.nelson, tianyu.lan, weiyang,
	zajec5

This patchset is to propose a solution of adding live migration
support for SRIOV NIC.

During migration, Qemu needs to let VF driver in the VM to know
migration start and end. Qemu adds faked PCI migration capability
to help to sync status between two sides during migration.

Qemu triggers VF's mailbox irq via sending MSIX msg when migration
status is changed. VF driver tells Qemu its mailbox vector index
via the new PCI capability. In some cases(NIC is suspended or closed),
VF mailbox irq is freed and VF driver can disable irq injecting via
new capability.

VF driver will put down nic before migration and put up again on
the target machine.

Lan Tianyu (3):
  VFIO: Add new ioctl cmd VFIO_GET_PCI_CAP_INFO
  PCI: Add macros for faked PCI migration capability
  Ixgbevf: Add migration support for ixgbevf driver

 drivers/net/ethernet/intel/ixgbevf/ixgbevf.h      |   5 ++
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 102 ++++++++++++++++++++++
 drivers/vfio/pci/vfio_pci.c                       |  21 +++++
 drivers/vfio/pci/vfio_pci_config.c                |  38 ++++++--
 drivers/vfio/pci/vfio_pci_private.h               |   5 ++
 include/uapi/linux/pci_regs.h                     |  18 +++-
 include/uapi/linux/vfio.h                         |  12 +++
 7 files changed, 194 insertions(+), 7 deletions(-)

-- 
1.8.4.rc0.1.g8f6a3e5.dirty

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2015-12-09 16:36 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24 13:38 [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC Lan Tianyu
     [not found] ` <1448372298-28386-1-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-11-24 13:38   ` [RFC PATCH V2 1/3] VFIO: Add new ioctl cmd VFIO_GET_PCI_CAP_INFO Lan Tianyu
2015-11-24 13:38   ` [RFC PATCH V2 2/3] PCI: Add macros for faked PCI migration capability Lan Tianyu
2015-11-24 13:38 ` [RFC PATCH V2 3/3] Ixgbevf: Add migration support for ixgbevf driver Lan Tianyu
2015-11-24 21:20   ` Michael S. Tsirkin
     [not found]     ` <20151124230551-mutt-send-email-mst-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-11-25  5:39       ` Alexander Duyck
2015-11-25  5:39       ` Lan Tianyu
     [not found]         ` <56554994.1090305-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-11-25 12:28           ` Michael S. Tsirkin
     [not found]             ` <20151125142437-mutt-send-email-mst-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-11-25 16:02               ` Lan, Tianyu
2015-11-25 16:22                 ` Michael S. Tsirkin
     [not found]                 ` <5655DB99.3040007-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-11-25 16:24                   ` Alexander Duyck
2015-11-25 16:39                     ` Michael S. Tsirkin
2015-11-25 17:24                       ` Alexander Duyck
2015-11-24 14:20 ` [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC Alexander Duyck
     [not found]   ` <5654722D.4010409-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-25  3:18     ` Lan Tianyu
2015-11-25  5:30       ` Alexander Duyck
2015-11-25  8:21         ` Lan Tianyu
     [not found]           ` <56556F98.5060507-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-11-25 15:32             ` Alexander Duyck
     [not found]               ` <CAKgT0UevBmRLpM1PvuuVDUW79A66RcPrfO8uGiqL1RiALW7apg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-11-26  3:15                 ` Dong, Eddie
2015-11-26  3:56                   ` Alexander Duyck
     [not found]                     ` <CAKgT0Ucyq=7OSYBVvU9Z01b3f6scS+eBMLg+yphW7bwkNZosPQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-11-30  6:53                       ` Lan, Tianyu
2015-11-30 16:07                         ` Alexander Duyck
2015-12-01 15:04                           ` Lan, Tianyu
     [not found]                             ` <565DB6FF.1050602-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-01 15:28                               ` Michael S. Tsirkin
2015-12-01 17:04                                 ` Alexander Duyck
     [not found]                                   ` <CAKgT0UfLEJpV-KdqRGfzBeas8bdqfHCmT5Xc8iVVP03g_pQO8A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-01 17:37                                     ` Michael S. Tsirkin
2015-12-01 18:36                                       ` Alexander Duyck
2015-12-02 11:44                                         ` Michael S. Tsirkin
2015-12-04 16:32                                           ` Lan, Tianyu
2015-12-04 17:07                                             ` Alexander Duyck
2015-12-07 15:40                                               ` Lan, Tianyu
     [not found]                                                 ` <5665A884.2020102-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-07 17:12                                                   ` Alexander Duyck
2015-12-07 17:39                                                     ` Michael S. Tsirkin
2015-12-07 18:42                                                       ` Alexander Duyck
2015-12-09  9:28                                                     ` Lan, Tianyu
2015-12-09 16:36                                                       ` Alexander Duyck
     [not found]                                             ` <5661C000.8070201-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-09 10:37                                               ` Michael S. Tsirkin
     [not found]                                                 ` <20151209122831-mutt-send-email-mst-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-09 11:19                                                   ` Lan, Tianyu
     [not found]                                                     ` <56680E33.6040204-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-09 11:28                                                       ` Michael S. Tsirkin
     [not found]                                                         ` <20151209132233-mutt-send-email-mst-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-09 11:41                                                           ` Lan, Tianyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).