vio_parse_vendor_features()
Update the statuses of the vendor-specific features to advertise to guest drivers
Synopsis:
#include <qvm/vio.h>void vio_parse_vendor_features(struct vio_vendor_feature *vfeats,
size_t vfeats_size,
char const* vfeats_str)Arguments:
- vfeats
- An array of vdev-provided vio_vendor_feature structures containing feature names and their bit-position fields to mutate.
- vfeats_size
- The size of the vfeats array.
- vfeats_str
- A null-terminated string containing one or more comma-separated name-value pairs indicating
the vendor-specific features and the bit positions where to advertise them.
Each feature name is followed by an equal sign and then the bit position for the feature
(e.g.,
VIRTIO_NET_VF_GUEST_TS=127).
Description:
Use this function to update the statuses of the vendor-specific features to advertise to guest drivers during feature negotiation. This function parses the given list of vdev features (vfeats_str) and updates their statuses by mutating the fields in the given vdev features array (vfeats) that store the bit positions at which these features are to be advertised.
Page updated:
