All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/4] Add migration support for VFIO device
@ 2018-10-16 18:12 ` Kirti Wankhede
  0 siblings, 0 replies; 36+ messages in thread
From: Kirti Wankhede @ 2018-10-16 18:12 UTC (permalink / raw)
  To: alex.williamson, cjia; +Cc: Kirti Wankhede, qemu-devel, kvm

Add migration support for VFIO device

This Patch set include patches as below:
- Define KABI for VFIO device for migration support.
- Generic migration functionality for VFIO device.
  * This patch set adds functionality only for PCI devices, but can be
    extended to other VFIO devices.
  * Added all the basic functions required for pre-copy, stop-and-copy and
    resume phases of migration.
  * Added state change notifier and from that notifier function, VFIO
    device's state changed is conveyed to VFIO vendor driver.
  * During save setup phase and resume/load setup phase, migration region
    is queried from vendor driver and is mmaped by QEMU. This region is
    used to read/write data from and to vendor driver.
  * .save_live_pending, .save_live_iterate and .is_active_iterate are
    implemented to use QEMU's functionality of iteration during pre-copy
    phase.
  * In .save_live_complete_precopy, that is in stop-and-copy phase,
    iteration to read data from vendor driver is implemented till pending
    bytes returned by vendor driver are not zero.
  * .save_cleanup and .load_cleanup are implemented to unmap migration
    region that was setup duing setup phase.
  * Added function to get dirty pages bitmap from vendor driver.
- Add vfio_listerner_log_sync to mark dirty pages.
- Make VFIO PCI device migration capable.

Thanks,
Kirti

Kirti Wankhede (4):
  VFIO KABI for migration interface
  Add migration functions for VFIO devices
  Add vfio_listerner_log_sync to mark dirty pages
  Make vfio-pci device migration capable.

 hw/vfio/Makefile.objs         |   2 +-
 hw/vfio/common.c              |  32 ++
 hw/vfio/migration.c           | 716 ++++++++++++++++++++++++++++++++++++++++++
 hw/vfio/pci.c                 |  13 +-
 include/hw/vfio/vfio-common.h |  23 ++
 linux-headers/linux/vfio.h    |  91 ++++++
 6 files changed, 869 insertions(+), 8 deletions(-)
 create mode 100644 hw/vfio/migration.c

-- 
2.7.0

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

end of thread, other threads:[~2018-10-18  9:24 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16 18:12 [RFC PATCH v1 0/4] Add migration support for VFIO device Kirti Wankhede
2018-10-16 18:12 ` [Qemu-devel] " Kirti Wankhede
2018-10-16 18:12 ` [RFC PATCH v1 1/4] VFIO KABI for migration interface Kirti Wankhede
2018-10-16 18:12   ` [Qemu-devel] " Kirti Wankhede
2018-10-16 22:34   ` Alex Williamson
2018-10-16 22:34     ` [Qemu-devel] " Alex Williamson
2018-10-17 20:47     ` Kirti Wankhede
2018-10-17 20:47       ` [Qemu-devel] " Kirti Wankhede
2018-10-17 23:14       ` Alex Williamson
2018-10-17 23:14         ` [Qemu-devel] " Alex Williamson
2018-10-18  1:49       ` Gonglei (Arei)
2018-10-18  1:49         ` [Qemu-devel] " Gonglei (Arei)
2018-10-17  9:06   ` Christoph Hellwig
2018-10-17  9:06     ` [Qemu-devel] " Christoph Hellwig
2018-10-17 10:09   ` Dr. David Alan Gilbert
2018-10-17 10:09     ` [Qemu-devel] " Dr. David Alan Gilbert
2018-10-17 21:17     ` Kirti Wankhede
2018-10-17 21:17       ` [Qemu-devel] " Kirti Wankhede
2018-10-18  9:23       ` Dr. David Alan Gilbert
2018-10-18  9:23         ` [Qemu-devel] " Dr. David Alan Gilbert
2018-10-16 18:12 ` [RFC PATCH v1 2/4] Add migration functions for VFIO devices Kirti Wankhede
2018-10-16 18:12   ` [Qemu-devel] " Kirti Wankhede
2018-10-17  9:00   ` Cornelia Huck
2018-10-17  9:00     ` [Qemu-devel] " Cornelia Huck
2018-10-17 21:03     ` Kirti Wankhede
2018-10-17 21:03       ` [Qemu-devel] " Kirti Wankhede
2018-10-16 18:12 ` [RFC PATCH v1 3/4] Add vfio_listerner_log_sync to mark dirty pages Kirti Wankhede
2018-10-16 18:12   ` [Qemu-devel] " Kirti Wankhede
2018-10-16 18:12 ` [RFC PATCH v1 4/4] Make vfio-pci device migration capable Kirti Wankhede
2018-10-16 18:12   ` [Qemu-devel] " Kirti Wankhede
2018-10-17  8:49 ` [RFC PATCH v1 0/4] Add migration support for VFIO device Cornelia Huck
2018-10-17  8:49   ` [Qemu-devel] " Cornelia Huck
2018-10-17 20:59   ` Kirti Wankhede
2018-10-17 20:59     ` [Qemu-devel] " Kirti Wankhede
2018-10-18  2:41 ` Tian, Kevin
2018-10-18  2:41   ` [Qemu-devel] " Tian, Kevin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.