mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
vfio/migration: Emit VFIO migration QAPI event
Emit VFIO migration QAPI event when a VFIO device changes its migration state. This can be used by management applications to get updates on the current state of the VFIO device for their own purposes. A new per VFIO device capability, "migration-events", is added so events can be enabled only for the required devices. It is disabled by default. 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:
parent
a0359b56ec
commit
5e1f8905ca
3 changed files with 59 additions and 3 deletions
|
@ -115,6 +115,7 @@ typedef struct VFIODevice {
|
|||
bool no_mmap;
|
||||
bool ram_block_discard_allowed;
|
||||
OnOffAuto enable_migration;
|
||||
bool migration_events;
|
||||
VFIODeviceOps *ops;
|
||||
unsigned int num_irqs;
|
||||
unsigned int num_regions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue