vio_set_vendor_feature()

Set the bit for a vendor-specific feature

Synopsis:

#include <qvm/vio.h>
void vio_set_vendor_feature(uint32_t *feature_bits,
                            uint16_t device_type,
                            struct vio_vendor_feature const *vfeat)

Arguments:

feature_bits
An array of bitfields that represent the vendor-specific features to advertise. These bitfields will be mutated to set the indicated bit.
device_type
The ID of the VIRTIO device that the feature applies to.
vfeat
A pointer to a vio_vendor_feature structure containing the bit to set.

Description:

Use this function to set the bit indicated in vfeat in the bitfields specified by feature_bits to ensure that the corresponding vendor-specific feature will be advertised to guest drivers during feature negotiation. The VIRTIO device that will advertise this feature is indicated by device_type.

Page updated: