aboutsummaryrefslogtreecommitdiff
path: root/include/hw/vfio
diff options
context:
space:
mode:
authorAvihai Horon <avihaih@nvidia.com>2024-05-15 16:21:36 +0300
committerCédric Le Goater <clg@redhat.com>2024-05-16 16:59:19 +0200
commit5e1f8905ca72775452f714008c3906c9d86158ae (patch)
treeba2323d1ccfca706c607d66f5b61918dede28e6c /include/hw/vfio
parenta0359b56ecb2002fbecd249b1ea71df618dbe4a2 (diff)
downloadqemu-5e1f8905ca72775452f714008c3906c9d86158ae.zip
qemu-5e1f8905ca72775452f714008c3906c9d86158ae.tar.gz
qemu-5e1f8905ca72775452f714008c3906c9d86158ae.tar.bz2
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>
Diffstat (limited to 'include/hw/vfio')
-rw-r--r--include/hw/vfio/vfio-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
index b6ac249..878e34a 100644
--- a/include/hw/vfio/vfio-common.h
+++ b/include/hw/vfio/vfio-common.h
@@ -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;