Introduce device migration supporting commands
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | admin: Add theory of operation for device migrationadmin-cmds-device-migration.tex admin.tex | +95 | 0 replies | |
| 2/8 | admin: Redefine reserved2 as command specific outputadmin.tex | +9 | 0 replies | |
| 3/8 | device-context: Define the device context fields for device migrationcontent.tex device-context.tex | +108 | 0 replies | |
| 4/8 | admin: Add device migration admin commandsadmin-cmds-device-migration.tex | +200 | 0 replies | |
| 5/8 | admin: Add requirements of device migration commandsadmin-cmds-device-migration.tex admin.tex | +115 | 0 replies | |
| 6/8 | admin: Add theory of operation for write recording commandsadmin-cmds-device-migration.tex | +15 | 0 replies | |
| 7/8 | admin: Add write recording commandsadmin-cmds-device-migration.tex admin.tex | +146 | 0 replies | |
| 8/8 | admin: Add requirements of write reporting commandsadmin-cmds-device-migration.tex | +36 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [virtio-comment] [PATCH 0/8] Introduce device migration supporting commands
This series introduces administration commands for member device migration for PCI transport; when needed it can be extended for other transports too.
Use case requirements:
======================
1. A hypervisor system needs to provide a PCI VF as passthrough device to the guest virtual machine and also support live migration of this virtual machine.
2. A virtual machine may have one or more such passthrough virtio devices.
3. A virtual machine may have other PCI passthrough device which may also interact with virtio device.
4. A hypervisor runs a vendor agnostic driver with extension to support device migration.
5. A PCI VF passthrough device needs to support transparent device reset and PCI FLR must while the device migration is ongoing.
6. A owner driver do not involve in device operations mediation for the passthrough device at virtio interface level.
7. Mechanism is generic enough that applies to large family of virtio devices and it does not involve trapping any virtio device interfaces for the passthrough devices.
Overview:
=========
Above usecase requirements is solved by PCI PF group owner driver facilitating the member device migration functionality using administration commands.
There are three major functionalities.
1. Suspend and resume the device operation
2. Read and Write the device context containing all the information that can be transferred from source to destination to migrate to a member device
3. Track pages written by the device during device migration is ongoing
This comprehensive series introduces 4 infrastructure pieces covering PCI transport, peer to peer PCI devices, page tracking (aka dirty page tracking) and generic device context.
1. Device mode get,set (active, stop, freeze)
2. Device context read and write
3. Defines device context
4. Write reporting to track page addresses
This series enables virtio PCI SR-IOV member device to member device migration. It can also be used to/from migrate from PCI SR-IOV member device to software composed PCI device if/when needed which can parse and compose software based PCI virtio device.
Example flow:
=============
Source hypervisor:
1. Instructs device to start tracking pages it is writing
2. Periodically query the addresses of the written pages
3. Suspend the device operation
4. Read the device context and transfer to destination hypervisor
Destination hypervisor:
5. Write the device context received from source
6. Resume the device that has newly written device context
Patch summary:
==============
patch-1: Adds theory of operation for device migration commands
patch-2: Redefine reserved2 to command output field
patch-3: Defines short device context for split virtqueues
patch-4: Adds device migration commands
patch-5: Adds requirements for device migration commands
patch-6: Adds theory of operation for write reporting commands
patch-7: Adds write reporting commands
patch-8: Adds requirements for write reporting commands
In next version v1, more detailed device context will be defined along with requirements.
It also takes inspiration from the similar idea presented at KVM Forum at [1].
Please review.
[1] https://static.sched.com/hosted_files/kvmforum2022/3a/KVM22-Migratable-Vhost-vDPA.pdf
Parav Pandit (8):
admin: Add theory of operation for device migration
admin: Redefine reserved2 as command specific output
device-context: Define the device context fields for device migration
admin: Add device migration admin commands
admin: Add requirements of device migration commands
admin: Add theory of operation for write recording commands
admin: Add write recording commands
admin: Add requirements of write reporting commands
admin-cmds-device-migration.tex | 574 ++++++++++++++++++++++++++++++++ admin.tex | 38 ++- content.tex | 1 + device-context.tex | 107 ++++++ 4 files changed, 713 insertions(+), 7 deletions(-) create mode 100644 admin-cmds-device-migration.tex create mode 100644 device-context.tex
Signature · 18 lines
2.34.1 This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: [email protected] Unsubscribe: [email protected] List help: [email protected] List archive: https://lists.oasis-open.org/archives/virtio-comment/ Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists Committee: https://www.oasis-open.org/committees/virtio/ Join OASIS: https://www.oasis-open.org/join/