RFC Add migration support for VFIO device
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | VFIO KABI for migration interfacelinux-headers/ | +91 | 8 replies | |
| 2/4 | Add migration functions for VFIO deviceshw/ hw/ include/ | +740 | 2 replies | |
| 3/4 | Add vfio_listerner_log_sync to mark dirty pageshw/ | +32 | 0 replies | |
| 4/4 | Make vfio-pci device migration capable.hw/ | +6 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Neo Jia |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH v1 0/4] Add migration support for VFIO device
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
Signature · 1 line
2.7.0