qapi/vfio: Add VFIO migration QAPI event

Add a new QAPI event for VFIO migration. This event will be emitted when
a VFIO device changes its migration state, for example, during migration
or when stopping/starting the guest.

This event can be used by management applications to get updates on the
current state of the VFIO device for their own purposes.

Note that this new event is introduced since VFIO devices have a unique
set of migration states which cannot be described as accurately by other
existing events such as run state or migration status.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
Avihai Horon 2024-05-15 16:21:35 +03:00 committed by Cédric Le Goater
parent 187716feeb
commit a0359b56ec
4 changed files with 70 additions and 0 deletions

View file

@ -52,6 +52,7 @@ qapi_all_modules = [
'stats',
'trace',
'transaction',
'vfio',
'virtio',
'yank',
]