aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorKirti Wankhede <kwankhede@nvidia.com>2020-10-26 15:06:13 +0530
committerAlex Williamson <alex.williamson@redhat.com>2020-11-01 12:30:50 -0700
commitc5e2fb3ce4dbb158732420fbd3b963eebbcd85c8 (patch)
tree9e5275ee7bee83cade44f07b02c619a49af78fdf /include/hw
parente93b733bcf8ee185af14a0f90a217d51cf40e7ea (diff)
downloadqemu-c5e2fb3ce4dbb158732420fbd3b963eebbcd85c8.zip
qemu-c5e2fb3ce4dbb158732420fbd3b963eebbcd85c8.tar.gz
qemu-c5e2fb3ce4dbb158732420fbd3b963eebbcd85c8.tar.bz2
vfio: Add save and load functions for VFIO PCI devices
Added functions to save and restore PCI device specific data, specifically config space of PCI device. Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com> Reviewed-by: Neo Jia <cjia@nvidia.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/vfio/vfio-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
index fe99c36..ba6169c 100644
--- a/include/hw/vfio/vfio-common.h
+++ b/include/hw/vfio/vfio-common.h
@@ -120,6 +120,8 @@ struct VFIODeviceOps {
int (*vfio_hot_reset_multi)(VFIODevice *vdev);
void (*vfio_eoi)(VFIODevice *vdev);
Object *(*vfio_get_object)(VFIODevice *vdev);
+ void (*vfio_save_config)(VFIODevice *vdev, QEMUFile *f);
+ int (*vfio_load_config)(VFIODevice *vdev, QEMUFile *f);
};
typedef struct VFIOGroup {