search for: ed04753

Displaying 3 results from an estimated 3 matches for "ed04753".

2017 Mar 29
5
[PATCH 1/2] virtio: allow drivers to validate features
...vice_features & (1ULL << i)) __virtio_set_bit(dev, i); + if (drv->validate) { + err = drv->validate(dev); + if (err) + goto err; + } + err = virtio_finalize_features(dev); if (err) goto err; diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 193fea9..ed04753 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -176,6 +176,7 @@ struct virtio_driver { unsigned int feature_table_size; const unsigned int *feature_table_legacy; unsigned int feature_table_size_legacy; + int (*validate)(struct virtio_device *dev); int (*probe)(struct vi...
2017 Mar 29
5
[PATCH 1/2] virtio: allow drivers to validate features
...vice_features & (1ULL << i)) __virtio_set_bit(dev, i); + if (drv->validate) { + err = drv->validate(dev); + if (err) + goto err; + } + err = virtio_finalize_features(dev); if (err) goto err; diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 193fea9..ed04753 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -176,6 +176,7 @@ struct virtio_driver { unsigned int feature_table_size; const unsigned int *feature_table_legacy; unsigned int feature_table_size_legacy; + int (*validate)(struct virtio_device *dev); int (*probe)(struct vi...
2017 Mar 30
0
[PATCH 1/2] virtio: allow drivers to validate features
...dev, i); > > + if (drv->validate) { > + err = drv->validate(dev); > + if (err) > + goto err; > + } > + > err = virtio_finalize_features(dev); > if (err) > goto err; > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > index 193fea9..ed04753 100644 > --- a/include/linux/virtio.h > +++ b/include/linux/virtio.h > @@ -176,6 +176,7 @@ struct virtio_driver { > unsigned int feature_table_size; > const unsigned int *feature_table_legacy; > unsigned int feature_table_size_legacy; > + int (*validate)(struct virtio_dev...