aboutsummaryrefslogtreecommitdiff
path: root/storage-daemon
diff options
context:
space:
mode:
authorAvihai Horon <avihaih@nvidia.com>2023-08-02 11:14:48 +0300
committerCédric Le Goater <clg@redhat.com>2023-09-11 08:34:05 +0200
commit94f775e428f8057ee66425f421b68fe8c94cebcc (patch)
tree20e1fb58116d78fcd4fde0404a4d257ddaf81b11 /storage-daemon
parent3d4d0f0e06630d0098e7940323fe0f96ff87f34f (diff)
downloadqemu-94f775e428f8057ee66425f421b68fe8c94cebcc.zip
qemu-94f775e428f8057ee66425f421b68fe8c94cebcc.tar.gz
qemu-94f775e428f8057ee66425f421b68fe8c94cebcc.tar.bz2
vfio/migration: Add P2P support for VFIO migration
VFIO migration uAPI defines an optional intermediate P2P quiescent state. While in the P2P quiescent state, P2P DMA transactions cannot be initiated by the device, but the device can respond to incoming ones. Additionally, all outstanding P2P transactions are guaranteed to have been completed by the time the device enters this state. The purpose of this state is to support migration of multiple devices that might do P2P transactions between themselves. Add support for P2P migration by transitioning all the devices to the P2P quiescent state before stopping or starting the devices. Use the new VMChangeStateHandler prepare_cb to achieve that behavior. This will allow migration of multiple VFIO devices if all of them support P2P migration. Signed-off-by: Avihai Horon <avihaih@nvidia.com> Tested-by: YangHang Liu <yanghliu@redhat.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'storage-daemon')
0 files changed, 0 insertions, 0 deletions