Lines Matching defs:VirtioDeviceClass
172 struct VirtioDeviceClass { struct
174 DeviceClass parent;
178 DeviceRealize realize;
179 DeviceUnrealize unrealize;
180 uint64_t (*get_features)(VirtIODevice *vdev,
183 uint64_t (*bad_features)(VirtIODevice *vdev);
184 void (*set_features)(VirtIODevice *vdev, uint64_t val);
185 int (*validate_features)(VirtIODevice *vdev);
186 void (*get_config)(VirtIODevice *vdev, uint8_t *config);
187 void (*set_config)(VirtIODevice *vdev, const uint8_t *config);
188 void (*reset)(VirtIODevice *vdev);
189 void (*set_status)(VirtIODevice *vdev, uint8_t val);
191 void (*queue_reset)(VirtIODevice *vdev, uint32_t queue_index);
193 void (*queue_enable)(VirtIODevice *vdev, uint32_t queue_index);
198 uint64_t legacy_features;
204 bool (*guest_notifier_pending)(VirtIODevice *vdev, int n);
210 void (*guest_notifier_mask)(VirtIODevice *vdev, int n, bool mask);
211 int (*start_ioeventfd)(VirtIODevice *vdev);
212 void (*stop_ioeventfd)(VirtIODevice *vdev);
216 void (*save)(VirtIODevice *vdev, QEMUFile *f);
217 int (*load)(VirtIODevice *vdev, QEMUFile *f, int version_id);
223 int (*post_load)(VirtIODevice *vdev);
224 const VMStateDescription *vmsd;
225 bool (*primary_unplug_pending)(void *opaque);
226 struct vhost_dev *(*get_vhost)(VirtIODevice *vdev);
227 void (*toggle_device_iotlb)(VirtIODevice *vdev);