Updated: October 28, 2024 |
Virtual device (vdev) information
#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; } ;
A pointer to device-specific state information.
A pointer to the device factory for the vdev.
A pointer to the guest system in which the vdev is defined (the hosting qvm process instance).
The location of the vdev in the guest system.
The guest interrupt the vdev uses to request service.
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).
Scheduler information for the vdev threads.
The vdev_s structure stores vdev information and provides the definition for the vdev_t data type, which is passed into vdev configuration functions.