vdev_factory_flags_t

Data type for storing flags controlling vdev creation

Synopsis:

#include <qvm/vdev-core.h>
typedef uint32_t vdev_factory_flags_t;

Description:

The vdev_factory_flags_t data type is used to store VFF_* flags which are defined for the vdev_factory factory_flags member.

There are two mutex flags which cause the qvm process to initialize the vdev_t v_mtx member. If you need a recursive mutex, specify both VFF_MUTEX and VFF_MUTEX_RECURSIVE.

There are four states for interrupts. You can set any of the three bits VFF_INTR_NO, VFF_INTR_REQ, or VFF_INTR_NONPCI. If you don't set any of these three bits, you can have the interrupt automatically assigned in VDEV_CTRL_ASSIGN.

Similarly, you can assign any of the three bits VFF_VDEV_MEM, VFF_VDEV_X86_IO, or VFF_VDEV_PCI. If you don't set any of these three bits, you can have the location automatically assigned in VDEV_CTRL_ASSIGN. If the location flags are set, then the hosting qvm process instance checks that the assigned location is of the specified type.

If a location is assigned but no type is specified, then the qvm process instance assumes the default location type and checks that the assigned location is of this type. Note that you can use VDEV_CTRL_ASSIGN only if you don't assign the location.

Page updated: