Displaying 20 results from an estimated 20 matches for "vm_dev_attr_version_show".
2014 Dec 19
5
[RFC] virtio-mmio: Update the device to OASIS spec version
...+ VIRTIO_MMIO_QUEUE_READY);
+ WARN_ON(readl(vm_dev->base + VIRTIO_MMIO_QUEUE_READY));
+ }
free_pages_exact(info->queue, size);
error_alloc_pages:
kfree(info);
@@ -439,6 +452,18 @@ static const struct virtio_config_ops virtio_mmio_config_ops = {
/* Platform device */
+static ssize_t vm_dev_attr_version_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
+{
+ struct platform_device *pdev = to_platform_device(dev);
+ struct virtio_mmio_device *vm_dev = platform_get_drvdata(pdev);
+
+ return snprintf(buf, PAGE_SIZE, "%lu", vm_dev->version);
+}
+
+static struct device_attrib...
2014 Dec 19
5
[RFC] virtio-mmio: Update the device to OASIS spec version
...+ VIRTIO_MMIO_QUEUE_READY);
+ WARN_ON(readl(vm_dev->base + VIRTIO_MMIO_QUEUE_READY));
+ }
free_pages_exact(info->queue, size);
error_alloc_pages:
kfree(info);
@@ -439,6 +452,18 @@ static const struct virtio_config_ops virtio_mmio_config_ops = {
/* Platform device */
+static ssize_t vm_dev_attr_version_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
+{
+ struct platform_device *pdev = to_platform_device(dev);
+ struct virtio_mmio_device *vm_dev = platform_get_drvdata(pdev);
+
+ return snprintf(buf, PAGE_SIZE, "%lu", vm_dev->version);
+}
+
+static struct device_attrib...
2015 Jan 15
3
[RFC] virtio-mmio: Update the device to OASIS spec version
...MMIO_QUEUE_READY);
> > + }
> >
> > /* Create the vring */
> > vq = vring_new_virtqueue(index, info->num, VIRTIO_MMIO_VRING_ALIGN, vdev,
[...]
> > +static struct device_attribute vm_dev_attr_version =
> > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > +
> > static int virtio_mmio_probe(struct platform_device *pdev)
> > {
> > struct virtio_mmio_device *vm_dev;
>
> We already expose feature bits - this one really necessary?
Necessary? Of course not, just a debugging feature, really, to see what
v...
2015 Jan 15
3
[RFC] virtio-mmio: Update the device to OASIS spec version
...MMIO_QUEUE_READY);
> > + }
> >
> > /* Create the vring */
> > vq = vring_new_virtqueue(index, info->num, VIRTIO_MMIO_VRING_ALIGN, vdev,
[...]
> > +static struct device_attribute vm_dev_attr_version =
> > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > +
> > static int virtio_mmio_probe(struct platform_device *pdev)
> > {
> > struct virtio_mmio_device *vm_dev;
>
> We already expose feature bits - this one really necessary?
Necessary? Of course not, just a debugging feature, really, to see what
v...
2015 Jan 15
2
[RFC] virtio-mmio: Update the device to OASIS spec version
...VIRTIO_PCI_VRING_ALIGN, &vp_dev->vdev,
> > > > +static struct device_attribute vm_dev_attr_version =
> > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > +
> > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > {
> > > > struct virtio_mmio_device *vm_dev;
> > >
> > > We already expose feature bits - this one really necessary?
> >
>...
2015 Jan 15
2
[RFC] virtio-mmio: Update the device to OASIS spec version
...VIRTIO_PCI_VRING_ALIGN, &vp_dev->vdev,
> > > > +static struct device_attribute vm_dev_attr_version =
> > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > +
> > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > {
> > > > struct virtio_mmio_device *vm_dev;
> > >
> > > We already expose feature bits - this one really necessary?
> >
>...
2015 Jan 15
2
[RFC] virtio-mmio: Update the device to OASIS spec version
...> SMP_CACHE_BYTES, &vp_dev->vdev,
Will have a look.
> > > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > > +
> > > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > > {
> > > > > > struct virtio_mmio_device *vm_dev;
> > > > >
> > > > > We already exp...
2015 Jan 15
2
[RFC] virtio-mmio: Update the device to OASIS spec version
...> SMP_CACHE_BYTES, &vp_dev->vdev,
Will have a look.
> > > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > > +
> > > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > > {
> > > > > > struct virtio_mmio_device *vm_dev;
> > > > >
> > > > > We already exp...
2015 Jan 15
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...vm_dev->base + VIRTIO_MMIO_QUEUE_READY));
> + }
> free_pages_exact(info->queue, size);
> error_alloc_pages:
> kfree(info);
> @@ -439,6 +452,18 @@ static const struct virtio_config_ops virtio_mmio_config_ops = {
>
> /* Platform device */
>
> +static ssize_t vm_dev_attr_version_show(struct device *dev,
> + struct device_attribute *attr, char *buf)
> +{
> + struct platform_device *pdev = to_platform_device(dev);
> + struct virtio_mmio_device *vm_dev = platform_get_drvdata(pdev);
> +
> + return snprintf(buf, PAGE_SIZE, "%lu", vm_dev->version);
>...
2015 Jan 15
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...vm_dev->base + VIRTIO_MMIO_QUEUE_READY));
> + }
> free_pages_exact(info->queue, size);
> error_alloc_pages:
> kfree(info);
> @@ -439,6 +452,18 @@ static const struct virtio_config_ops virtio_mmio_config_ops = {
>
> /* Platform device */
>
> +static ssize_t vm_dev_attr_version_show(struct device *dev,
> + struct device_attribute *attr, char *buf)
> +{
> + struct platform_device *pdev = to_platform_device(dev);
> + struct virtio_mmio_device *vm_dev = platform_get_drvdata(pdev);
> +
> + return snprintf(buf, PAGE_SIZE, "%lu", vm_dev->version);
>...
2015 Jan 19
2
[RFC] virtio-mmio: Update the device to OASIS spec version
On Thu, 2015-01-15 at 19:12 +0000, Michael S. Tsirkin wrote:
> > > > > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > > > > +
> > > > > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > > > > {
> > > > > > > > struct virtio_mmio_device *vm_dev;
> > > > >...
2015 Jan 19
2
[RFC] virtio-mmio: Update the device to OASIS spec version
On Thu, 2015-01-15 at 19:12 +0000, Michael S. Tsirkin wrote:
> > > > > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > > > > +
> > > > > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > > > > {
> > > > > > > > struct virtio_mmio_device *vm_dev;
> > > > >...
2015 Jan 15
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...; > >
> > > /* Create the vring */
> > > vq = vring_new_virtqueue(index, info->num, VIRTIO_MMIO_VRING_ALIGN, vdev,
>
> [...]
>
> > > +static struct device_attribute vm_dev_attr_version =
> > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > +
> > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > {
> > > struct virtio_mmio_device *vm_dev;
> >
> > We already expose feature bits - this one really necessary?
>
> Necessary? Of course not, just a...
2015 Jan 15
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...; > >
> > > /* Create the vring */
> > > vq = vring_new_virtqueue(index, info->num, VIRTIO_MMIO_VRING_ALIGN, vdev,
>
> [...]
>
> > > +static struct device_attribute vm_dev_attr_version =
> > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > +
> > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > {
> > > struct virtio_mmio_device *vm_dev;
> >
> > We already expose feature bits - this one really necessary?
>
> Necessary? Of course not, just a...
2015 Jan 15
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...SMP_CACHE_BYTES, &vp_dev->vdev,
>
> Will have a look.
>
> > > > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > > > +
> > > > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > > > {
> > > > > > > struct virtio_mmio_device *vm_dev;
> > > > > >
> > >...
2015 Jan 15
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...SMP_CACHE_BYTES, &vp_dev->vdev,
>
> Will have a look.
>
> > > > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > > > +
> > > > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > > > {
> > > > > > > struct virtio_mmio_device *vm_dev;
> > > > > >
> > >...
2015 Jan 15
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...SMP_CACHE_BYTES, &vp_dev->vdev,
> > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > +
> > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > {
> > > > > struct virtio_mmio_device *vm_dev;
> > > >
> > > > We already expose feature bits - this one re...
2015 Jan 15
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...SMP_CACHE_BYTES, &vp_dev->vdev,
> > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > +
> > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > {
> > > > > struct virtio_mmio_device *vm_dev;
> > > >
> > > > We already expose feature bits - this one re...
2015 Jan 19
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...an 19, 2015 at 05:45:54PM +0000, Pawel Moll wrote:
> On Thu, 2015-01-15 at 19:12 +0000, Michael S. Tsirkin wrote:
> > > > > > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > > > > > +
> > > > > > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > > > > > {
> > > > > > > > > struct virtio_mmio_device *vm_dev;
>...
2015 Jan 19
0
[RFC] virtio-mmio: Update the device to OASIS spec version
...an 19, 2015 at 05:45:54PM +0000, Pawel Moll wrote:
> On Thu, 2015-01-15 at 19:12 +0000, Michael S. Tsirkin wrote:
> > > > > > > > > +static struct device_attribute vm_dev_attr_version =
> > > > > > > > > + __ATTR(version, S_IRUGO, vm_dev_attr_version_show, NULL);
> > > > > > > > > +
> > > > > > > > > static int virtio_mmio_probe(struct platform_device *pdev)
> > > > > > > > > {
> > > > > > > > > struct virtio_mmio_device *vm_dev;
>...