vdev_s
Virtual device (vdev) information
Synopsis:
#include <qvm/vdev-core.h>
struct vdev_s {
void* v_device;
struct vdev_factory* v_factory;
struct guest_system* v_gsp;
struct qvm_state_block v_block;
struct guest_intr v_intr;
pthread_mutex_t v_mtx;
struct qvm_sched_info v_sched;
} ;Data:
- void* v_device
A pointer to device-specific state information.
- struct vdev_factory* v_factory
A pointer to the device factory for the vdev.
- struct guest_system* v_gsp
A pointer to the guest system in which the vdev is defined (the hosting
qvmprocess instance).- struct qvm_state_block v_block
The location of the vdev in the guest system.
- struct guest_intr v_intr
The guest interrupt the vdev uses to request service.
- pthread_mutex_t v_mtx
A mutex for the vdev's own use. Use the flags specified by vdev_factory_flags to intitialize this member: VFF_MUTEX (and, optionally, VFF_MUTEX_RECURSIVE).
- struct qvm_sched_info v_sched
Scheduler information for the vdev threads.
Description:
The vdev_s structure stores vdev information and provides the definition for the vdev_t data type, which is passed into vdev configuration functions.
Page updated:
