Home
last modified time | relevance | path

Searched refs:VFIODevice (Results 1 – 14 of 14) sorted by relevance

/openbmc/qemu/include/hw/vfio/
H A Dvfio-common.h54 struct VFIODevice *vbasedev;
65 struct VFIODevice *vbasedev;
104 QLIST_HEAD(, VFIODevice) device_list;
119 typedef struct VFIODevice { struct
120 QLIST_ENTRY(VFIODevice) next;
121 QLIST_ENTRY(VFIODevice) container_next;
122 QLIST_ENTRY(VFIODevice) global_next;
152 QLIST_ENTRY(VFIODevice) hwpt_next; argument
153 } VFIODevice; typedef
156 void (*vfio_compute_needs_reset)(VFIODevice *vdev);
[all …]
H A Dvfio-container-base.h18 typedef struct VFIODevice VFIODevice; typedef
50 QLIST_HEAD(, VFIODevice) device_list;
119 bool (*attach_device)(const char *name, VFIODevice *vbasedev,
121 void (*detach_device)(VFIODevice *vbasedev);
155 int (*pci_hot_reset)(VFIODevice *vbasedev, bool single);
H A Dvfio-platform.h52 VFIODevice vbasedev; /* not a QOM object */
/openbmc/qemu/hw/vfio/
H A Dmigration.c107 static void vfio_migration_send_event(VFIODevice *vbasedev) in vfio_migration_send_event()
127 static void vfio_migration_set_device_state(VFIODevice *vbasedev, in vfio_migration_set_device_state()
139 static int vfio_migration_set_state(VFIODevice *vbasedev, in vfio_migration_set_state()
237 vfio_migration_set_state_or_reset(VFIODevice *vbasedev, in vfio_migration_set_state_or_reset()
245 static int vfio_load_buffer(QEMUFile *f, VFIODevice *vbasedev, in vfio_load_buffer()
260 VFIODevice *vbasedev = opaque; in vfio_save_device_config_state()
285 VFIODevice *vbasedev = opaque; in vfio_load_device_config_state()
310 static void vfio_migration_cleanup(VFIODevice *vbasedev) in vfio_migration_cleanup()
318 static int vfio_query_stop_copy_size(VFIODevice *vbasedev, in vfio_query_stop_copy_size()
424 static bool vfio_precopy_supported(VFIODevice *vbasedev) in vfio_precopy_supported()
[all …]
H A Diommufd.c53 static bool iommufd_cdev_kvm_device_add(VFIODevice *vbasedev, Error **errp) in iommufd_cdev_kvm_device_add()
58 static void iommufd_cdev_kvm_device_del(VFIODevice *vbasedev) in iommufd_cdev_kvm_device_del()
67 static bool iommufd_cdev_connect_and_bind(VFIODevice *vbasedev, Error **errp) in iommufd_cdev_connect_and_bind()
107 static void iommufd_cdev_unbind_and_disconnect(VFIODevice *vbasedev) in iommufd_cdev_unbind_and_disconnect()
238 static int iommufd_cdev_attach_ioas_hwpt(VFIODevice *vbasedev, uint32_t id, in iommufd_cdev_attach_ioas_hwpt()
261 static bool iommufd_cdev_detach_ioas_hwpt(VFIODevice *vbasedev, Error **errp) in iommufd_cdev_detach_ioas_hwpt()
278 static bool iommufd_cdev_autodomains_get(VFIODevice *vbasedev, in iommufd_cdev_autodomains_get()
358 static void iommufd_cdev_autodomains_put(VFIODevice *vbasedev, in iommufd_cdev_autodomains_put()
373 static bool iommufd_cdev_attach_container(VFIODevice *vbasedev, in iommufd_cdev_attach_container()
385 static void iommufd_cdev_detach_container(VFIODevice *vbasedev, in iommufd_cdev_detach_container()
[all …]
H A Dhelpers.c36 void vfio_disable_irqindex(VFIODevice *vbasedev, int index) in vfio_disable_irqindex()
49 void vfio_unmask_single_irqindex(VFIODevice *vbasedev, int index) in vfio_unmask_single_irqindex()
62 void vfio_mask_single_irqindex(VFIODevice *vbasedev, int index) in vfio_mask_single_irqindex()
89 static const char *index_to_str(VFIODevice *vbasedev, int index) in index_to_str()
111 bool vfio_set_irq_signaling(VFIODevice *vbasedev, int index, int subindex, in vfio_set_irq_signaling()
156 VFIODevice *vbasedev = region->vbasedev; in vfio_region_write()
206 VFIODevice *vbasedev = region->vbasedev; in vfio_region_read()
344 int vfio_region_setup(Object *obj, VFIODevice *vbasedev, VFIORegion *region, in vfio_region_setup()
559 int vfio_get_region_info(VFIODevice *vbasedev, int index, in vfio_get_region_info()
586 int vfio_get_dev_region_info(VFIODevice *vbasedev, uint32_t type, in vfio_get_dev_region_info()
[all …]
H A Dplatform.c57 static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev, in vfio_init_intp()
115 VFIODevice *vbasedev = &intp->vdev->vbasedev; in vfio_set_trigger_eventfd()
285 static void vfio_platform_eoi(VFIODevice *vbasedev) in vfio_platform_eoi()
355 VFIODevice *vbasedev = &intp->vdev->vbasedev; in vfio_set_resample_eventfd()
426 static void vfio_platform_compute_needs_reset(VFIODevice *vbasedev) in vfio_platform_compute_needs_reset()
432 static int vfio_platform_hot_reset_multi(VFIODevice *vbasedev) in vfio_platform_hot_reset_multi()
444 static bool vfio_populate_device(VFIODevice *vbasedev, Error **errp) in vfio_populate_device()
529 static bool vfio_base_device_init(VFIODevice *vbasedev, Error **errp) in vfio_base_device_init()
575 VFIODevice *vbasedev = &vdev->vbasedev; in vfio_platform_realize()
649 VFIODevice *vbasedev = &vdev->vbasedev; in vfio_platform_instance_init()
H A Dap.c38 VFIODevice vdev;
44 static void vfio_ap_compute_needs_reset(VFIODevice *vdev) in OBJECT_DECLARE_SIMPLE_TYPE()
81 VFIODevice *vdev = &vapdev->vdev; in vfio_ap_register_irq_notifier()
159 VFIODevice *vbasedev = &vapdev->vdev; in vfio_ap_realize()
223 VFIODevice *vbasedev = &vapdev->vdev; in vfio_ap_instance_init()
H A Dcommon.c69 VFIODevice *vbasedev; in vfio_mig_active()
92 VFIODevice *vbasedev; in vfio_multiple_devices_migration_is_supported()
109 int vfio_block_multiple_devices_migration(VFIODevice *vbasedev, Error **errp) in vfio_block_multiple_devices_migration()
145 bool vfio_viommu_preset(VFIODevice *vbasedev) in vfio_viommu_preset()
157 bool vfio_device_state_is_running(VFIODevice *vbasedev) in vfio_device_state_is_running()
165 bool vfio_device_state_is_precopy(VFIODevice *vbasedev) in vfio_device_state_is_precopy()
175 VFIODevice *vbasedev; in vfio_devices_all_dirty_tracking()
199 VFIODevice *vbasedev; in vfio_devices_all_device_dirty_tracking()
220 VFIODevice *vbasedev; in vfio_devices_all_running_and_mig_active()
820 VFIODevice *vbasedev; in vfio_section_is_vfio_pci()
[all …]
H A Dcontainer.c802 VFIODevice *vbasedev, Error **errp) in vfio_get_device()
860 static void vfio_put_base_device(VFIODevice *vbasedev) in vfio_put_base_device()
871 static int vfio_device_groupid(VFIODevice *vbasedev, Error **errp) in vfio_device_groupid()
903 static bool vfio_legacy_attach_device(const char *name, VFIODevice *vbasedev, in vfio_legacy_attach_device()
907 VFIODevice *vbasedev_iter; in vfio_legacy_attach_device()
946 static void vfio_legacy_detach_device(VFIODevice *vbasedev) in vfio_legacy_detach_device()
958 static int vfio_legacy_pci_hot_reset(VFIODevice *vbasedev, bool single) in vfio_legacy_pci_hot_reset()
989 VFIODevice *vbasedev_iter; in vfio_legacy_pci_hot_reset()
1084 VFIODevice *vbasedev_iter; in vfio_legacy_pci_hot_reset()
1145 VFIODevice *vdev = opaque; in hiod_legacy_vfio_realize()
[all …]
H A Dccw.c37 VFIODevice vdev;
65 static void vfio_ccw_compute_needs_reset(VFIODevice *vdev) in vfio_ccw_compute_needs_reset()
386 VFIODevice *vdev = &vcdev->vdev; in vfio_ccw_register_irq_notifier()
479 VFIODevice *vdev = &vcdev->vdev; in vfio_ccw_get_region()
580 VFIODevice *vbasedev = &vcdev->vdev; in vfio_ccw_realize()
677 VFIODevice *vbasedev = &vcdev->vdev; in vfio_ccw_instance_init()
H A Dpci.c104 static void vfio_intx_eoi(VFIODevice *vbasedev) in vfio_intx_eoi()
2513 VFIODevice *vbasedev = &vdev->vbasedev; in vfio_pci_hot_reset()
2539 static int vfio_pci_hot_reset_multi(VFIODevice *vbasedev) in vfio_pci_hot_reset_multi()
2545 static void vfio_pci_compute_needs_reset(VFIODevice *vbasedev) in vfio_pci_compute_needs_reset()
2553 static Object *vfio_pci_get_object(VFIODevice *vbasedev) in vfio_pci_get_object()
2609 static int vfio_pci_save_config(VFIODevice *vbasedev, QEMUFile *f, Error **errp) in vfio_pci_save_config()
2617 static int vfio_pci_load_config(VFIODevice *vbasedev, QEMUFile *f) in vfio_pci_load_config()
2668 VFIODevice *vbasedev = &vdev->vbasedev; in vfio_populate_vga()
2733 VFIODevice *vbasedev = &vdev->vbasedev; in vfio_populate_device()
2965 VFIODevice *vbasedev = &vdev->vbasedev; in vfio_realize()
[all …]
H A Dpci.h124 VFIODevice vbasedev;
/openbmc/qemu/hw/core/
H A Dsysbus-fdt.c224 VFIODevice *vbasedev = &vdev->vbasedev; in add_calxeda_midway_xgmac_fdt_node()
295 VFIODevice *vbasedev = &vdev->vbasedev; in add_amd_xgbe_fdt_node()