Home
last modified time | relevance | path

Searched refs:vbasedev (Results 1 – 8 of 8) sorted by relevance

/openbmc/qemu/hw/vfio/
H A Dmigration.c92 static void vfio_migration_send_event(VFIODevice *vbasedev) in vfio_migration_send_event() argument
94 VFIOMigration *migration = vbasedev->migration; in vfio_migration_send_event()
95 DeviceState *dev = vbasedev->dev; in vfio_migration_send_event()
99 if (!vbasedev->migration_events) { in vfio_migration_send_event()
103 g_assert(vbasedev->ops->vfio_get_object); in vfio_migration_send_event()
104 obj = vbasedev->ops->vfio_get_object(vbasedev); in vfio_migration_send_event()
112 static void vfio_migration_set_device_state(VFIODevice *vbasedev, in vfio_migration_set_device_state() argument
115 VFIOMigration *migration = vbasedev->migration; in vfio_migration_set_device_state()
117 trace_vfio_migration_set_device_state(vbasedev->name, in vfio_migration_set_device_state()
121 vfio_migration_send_event(vbasedev); in vfio_migration_set_device_state()
[all …]
H A Dmigration-multifd.c38 bool vfio_load_config_after_iter(VFIODevice *vbasedev) in vfio_load_config_after_iter() argument
40 if (vbasedev->migration_load_config_after_iter == ON_OFF_AUTO_ON) { in vfio_load_config_after_iter()
42 } else if (vbasedev->migration_load_config_after_iter == ON_OFF_AUTO_OFF) { in vfio_load_config_after_iter()
46 assert(vbasedev->migration_load_config_after_iter == ON_OFF_AUTO_AUTO); in vfio_load_config_after_iter()
123 static bool vfio_load_state_buffer_insert(VFIODevice *vbasedev, in vfio_load_state_buffer_insert() argument
128 VFIOMigration *migration = vbasedev->migration; in vfio_load_state_buffer_insert()
141 vbasedev->name, packet->idx); in vfio_load_state_buffer_insert()
149 vbasedev->migration_max_queued_buffers_size) { in vfio_load_state_buffer_insert()
153 vbasedev->name, packet->idx, in vfio_load_state_buffer_insert()
154 vbasedev->migration_max_queued_buffers_size); in vfio_load_state_buffer_insert()
[all …]
H A Dmigration-multifd.h17 bool vfio_multifd_setup(VFIODevice *vbasedev, bool alloc_multifd, Error **errp);
18 void vfio_multifd_cleanup(VFIODevice *vbasedev);
21 bool vfio_multifd_transfer_enabled(VFIODevice *vbasedev);
23 bool vfio_load_config_after_iter(VFIODevice *vbasedev);
27 int vfio_load_state_config_load_ready(VFIODevice *vbasedev);
29 void vfio_multifd_emit_dummy_eos(VFIODevice *vbasedev, QEMUFile *f);
35 int vfio_multifd_switchover_start(VFIODevice *vbasedev);
H A Dvfio-migration-internal.h40 struct VFIODevice *vbasedev; member
58 bool vfio_migration_realize(VFIODevice *vbasedev, Error **errp);
59 void vfio_migration_exit(VFIODevice *vbasedev);
60 bool vfio_device_state_is_running(VFIODevice *vbasedev);
61 bool vfio_device_state_is_precopy(VFIODevice *vbasedev);
66 int vfio_migration_set_state(VFIODevice *vbasedev,
H A Ddisplay.c44 int fd = vdev->vbasedev.fd; in vfio_display_edid_link_up()
61 int fd = vdev->vbasedev.fd; in vfio_display_edid_update()
129 int fd = vdev->vbasedev.fd; in vfio_display_edid_init()
132 ret = vfio_device_get_region_info_type(&vdev->vbasedev, in vfio_display_edid_init()
222 ret = ioctl(vdev->vbasedev.fd, VFIO_DEVICE_QUERY_GFX_PLANE, &plane); in vfio_display_get_dmabuf()
242 fd = ioctl(vdev->vbasedev.fd, VFIO_DEVICE_GET_GFX_DMABUF, &plane.dmabuf_id); in vfio_display_get_dmabuf()
413 ret = ioctl(vdev->vbasedev.fd, VFIO_DEVICE_QUERY_GFX_PLANE, &plane); in vfio_display_region_update()
449 ret = vfio_region_setup(OBJECT(vdev), &vdev->vbasedev, in vfio_display_region_update()
525 ret = ioctl(vdev->vbasedev.fd, VFIO_DEVICE_QUERY_GFX_PLANE, &probe); in vfio_display_probe()
533 ret = ioctl(vdev->vbasedev.fd, VFIO_DEVICE_QUERY_GFX_PLANE, &probe); in vfio_display_probe()
H A Dccw.c569 VFIODevice *vbasedev = &vcdev->vdev; in vfio_ccw_realize() local
579 if (!vfio_device_get_name(vbasedev, errp)) { in vfio_ccw_realize()
583 if (!vfio_device_attach(cdev->mdevid, vbasedev, in vfio_ccw_realize()
620 vfio_device_detach(vbasedev); in vfio_ccw_realize()
622 vfio_device_free_name(vbasedev); in vfio_ccw_realize()
665 VFIODevice *vbasedev = &vcdev->vdev; in vfio_ccw_instance_init() local
668 vbasedev->mdev = true; in vfio_ccw_instance_init()
678 vfio_device_init(vbasedev, VFIO_DEVICE_TYPE_CCW, &vfio_ccw_ops, in vfio_ccw_instance_init()
/openbmc/qemu/hw/vfio-user/
H A Ddevice.c130 static int vfio_user_device_io_get_region_info(VFIODevice *vbasedev, in vfio_user_device_io_get_region_info() argument
137 if (info->index > vbasedev->num_initial_regions) { in vfio_user_device_io_get_region_info()
141 ret = vfio_user_get_region_info(vbasedev->proxy, info, &fds); in vfio_user_device_io_get_region_info()
155 static int vfio_user_device_io_get_irq_info(VFIODevice *vbasedev, in vfio_user_device_io_get_irq_info() argument
158 VFIOUserProxy *proxy = vbasedev->proxy; in vfio_user_device_io_get_irq_info()
200 static int vfio_user_device_io_set_irqs(VFIODevice *vbasedev, in vfio_user_device_io_set_irqs() argument
203 VFIOUserProxy *proxy = vbasedev->proxy; in vfio_user_device_io_set_irqs()
291 static int vfio_user_device_io_region_read(VFIODevice *vbasedev, uint8_t index, in vfio_user_device_io_region_read() argument
296 VFIOUserProxy *proxy = vbasedev->proxy; in vfio_user_device_io_region_read()
334 static int vfio_user_device_io_region_write(VFIODevice *vbasedev, uint8_t index, in vfio_user_device_io_region_write() argument
[all …]
H A Dproxy.h107 void vfio_user_set_handler(VFIODevice *vbasedev,