diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2024-02-22 09:28:37 -0800 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-03-08 22:10:13 +0100 |
commit | d9fa4223b30ab881cc2f506fda1fc6a86aad5529 (patch) | |
tree | 1b27db01aebfe377e7f07abbaa843d3d3872e3de /include/hw/vfio | |
parent | cbccded4a2b5d685a426a437e25f67d3a375b292 (diff) | |
download | qemu-d9fa4223b30ab881cc2f506fda1fc6a86aad5529.zip qemu-d9fa4223b30ab881cc2f506fda1fc6a86aad5529.tar.gz qemu-d9fa4223b30ab881cc2f506fda1fc6a86aad5529.tar.bz2 |
vfio: register container for cpr
Define entry points to perform per-container cpr-specific initialization
and teardown.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include/hw/vfio')
-rw-r--r-- | include/hw/vfio/vfio-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 4a6c262..b9da6c0 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -205,6 +205,9 @@ void vfio_detach_device(VFIODevice *vbasedev); int vfio_kvm_device_add_fd(int fd, Error **errp); int vfio_kvm_device_del_fd(int fd, Error **errp); +int vfio_cpr_register_container(VFIOContainerBase *bcontainer, Error **errp); +void vfio_cpr_unregister_container(VFIOContainerBase *bcontainer); + extern const MemoryRegionOps vfio_region_ops; typedef QLIST_HEAD(VFIOGroupList, VFIOGroup) VFIOGroupList; typedef QLIST_HEAD(VFIODeviceList, VFIODevice) VFIODeviceList; |