diff options
author | Avihai Horon <avihaih@nvidia.com> | 2023-02-16 16:36:27 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-02-16 12:13:46 -0700 |
commit | 31bcbbb5be04c7036223ce680a12927f5e51dc77 (patch) | |
tree | 10b5bcb45764ce97653c08e85dbd13c3b73d7967 /hw/pci-host/uninorth.c | |
parent | 6eeb2909104664af4c3488232f3c3cd8471c38c3 (diff) | |
download | qemu-31bcbbb5be04c7036223ce680a12927f5e51dc77.zip qemu-31bcbbb5be04c7036223ce680a12927f5e51dc77.tar.gz qemu-31bcbbb5be04c7036223ce680a12927f5e51dc77.tar.bz2 |
vfio/migration: Implement VFIO migration protocol v2
Implement the basic mandatory part of VFIO migration protocol v2.
This includes all functionality that is necessary to support
VFIO_MIGRATION_STOP_COPY part of the v2 protocol.
The two protocols, v1 and v2, will co-exist and in the following patches
v1 protocol code will be removed.
There are several main differences between v1 and v2 protocols:
- VFIO device state is now represented as a finite state machine instead
of a bitmap.
- Migration interface with kernel is now done using VFIO_DEVICE_FEATURE
ioctl and normal read() and write() instead of the migration region.
- Pre-copy is made optional in v2 protocol. Support for pre-copy will be
added later on.
Detailed information about VFIO migration protocol v2 and its difference
compared to v1 protocol can be found here [1].
[1]
https://lore.kernel.org/all/20220224142024.147653-10-yishaih@nvidia.com/
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>.
Link: https://lore.kernel.org/r/20230216143630.25610-9-avihaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/pci-host/uninorth.c')
0 files changed, 0 insertions, 0 deletions