/* The first half of the feature bitmask is for us to advertise features. The second half is for the Guest to accept features.  */
static void add_feature(struct device *dev, unsigned bit)
/* The first half of the feature bitmask is for us to advertise features. The second half is for the Guest to accept features.  */
static void add_feature(struct device *dev, unsigned bit)
{
	u8 *features = get_feature_bits(dev);
	if (dev->desc->feature_len <= bit / CHAR_BIT) {
		assert(dev->desc->config_len == 0);
		dev->feature_len = dev->desc->feature_len = (bit/CHAR_BIT) + 1;
	}
	features[bit / CHAR_BIT] |= (1 << (bit % CHAR_BIT));
}