search for: virtio_device

Displaying 20 results from an estimated 3615 matches for "virtio_device".

2012 Dec 05
12
[PATCH 1/3] virtio: change to_vp_device to an inlined definition
...a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -98,11 +98,7 @@ static struct pci_device_id virtio_pci_id_table[] = { MODULE_DEVICE_TABLE(pci, virtio_pci_id_table); -/* Convert a generic virtio device to our structure */ -static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev) -{ - return container_of(vdev, struct virtio_pci_device, vdev); -} +#define to_vp_device(_vdev) container_of(_vdev, struct virtio_pci_device, vdev) /* virtio config->get_features() implementation */ static u32 vp_get_features(struct virtio_device *vdev) -- 1.8.0
2012 Dec 05
12
[PATCH 1/3] virtio: change to_vp_device to an inlined definition
...a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -98,11 +98,7 @@ static struct pci_device_id virtio_pci_id_table[] = { MODULE_DEVICE_TABLE(pci, virtio_pci_id_table); -/* Convert a generic virtio device to our structure */ -static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev) -{ - return container_of(vdev, struct virtio_pci_device, vdev); -} +#define to_vp_device(_vdev) container_of(_vdev, struct virtio_pci_device, vdev) /* virtio config->get_features() implementation */ static u32 vp_get_features(struct virtio_device *vdev) -- 1.8.0
2014 Dec 08
0
[PATCH v3 3/6] virtio: allow finalize_features to fail
...tio/virtio_pci.c | 4 +++- 9 files changed, 38 insertions(+), 16 deletions(-) diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 1fa5faa..7979f85 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -47,6 +47,7 @@ * vdev: the virtio_device * This gives the final feature bits for the device: it can change * the dev->feature bits if it wants. + * Returns 0 on success or error status * @bus_name: return the bus name associated with the device * vdev: the virtio_device * This returns a pointer to the bus name a la pci_n...
2014 Dec 08
0
[PATCH v3 3/6] virtio: allow finalize_features to fail
...tio/virtio_pci.c | 4 +++- 9 files changed, 38 insertions(+), 16 deletions(-) diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 1fa5faa..7979f85 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -47,6 +47,7 @@ * vdev: the virtio_device * This gives the final feature bits for the device: it can change * the dev->feature bits if it wants. + * Returns 0 on success or error status * @bus_name: return the bus name associated with the device * vdev: the virtio_device * This returns a pointer to the bus name a la pci_n...
2014 Dec 04
0
[PATCH RFC v2 3/4] virtio: allow finalize_features to fail
...rtio/virtio_pci.c | 4 +++- 9 files changed, 27 insertions(+), 10 deletions(-) diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 1fa5faa..7979f85 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -47,6 +47,7 @@ * vdev: the virtio_device * This gives the final feature bits for the device: it can change * the dev->feature bits if it wants. + * Returns 0 on success or error status * @bus_name: return the bus name associated with the device * vdev: the virtio_device * This returns a pointer to the bus name a la pci_n...
2014 Dec 04
0
[PATCH RFC v2 3/4] virtio: allow finalize_features to fail
...rtio/virtio_pci.c | 4 +++- 9 files changed, 27 insertions(+), 10 deletions(-) diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 1fa5faa..7979f85 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -47,6 +47,7 @@ * vdev: the virtio_device * This gives the final feature bits for the device: it can change * the dev->feature bits if it wants. + * Returns 0 on success or error status * @bus_name: return the bus name associated with the device * vdev: the virtio_device * This returns a pointer to the bus name a la pci_n...
2014 Dec 04
4
[PATCH RFC v2 1/4] virtio: add API to detect legacy devices
...t de.ibm.com> --- include/linux/virtio.h | 2 ++ drivers/virtio/virtio.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 2bbf626..d666bcb 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -108,6 +108,8 @@ struct virtio_device { void *priv; }; +bool virtio_device_is_legacy_only(struct virtio_device_id id); + static inline struct virtio_device *dev_to_virtio(struct device *_dev) { return container_of(_dev, struct virtio_device, dev); diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index fa6b75d..6b...
2014 Dec 04
4
[PATCH RFC v2 1/4] virtio: add API to detect legacy devices
...t de.ibm.com> --- include/linux/virtio.h | 2 ++ drivers/virtio/virtio.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 2bbf626..d666bcb 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -108,6 +108,8 @@ struct virtio_device { void *priv; }; +bool virtio_device_is_legacy_only(struct virtio_device_id id); + static inline struct virtio_device *dev_to_virtio(struct device *_dev) { return container_of(_dev, struct virtio_device, dev); diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index fa6b75d..6b...
2014 Dec 08
7
[PATCH v3 0/6] virtio 1.0 enhancements
These are minor robustness enhancements on top of v8 of the patchset [PATCH v8 00/50] linux: towards virtio-1 guest support http://mid.gmane.org/1417449619-24896-1-git-send-email-mst at redhat.com As that one seems stable and actually seems to work well for people, I'm not respinning it anymore. The main motivation is to prevent us accidentally supporting bad configurations, such as legacy
2014 Dec 08
7
[PATCH v3 0/6] virtio 1.0 enhancements
These are minor robustness enhancements on top of v8 of the patchset [PATCH v8 00/50] linux: towards virtio-1 guest support http://mid.gmane.org/1417449619-24896-1-git-send-email-mst at redhat.com As that one seems stable and actually seems to work well for people, I'm not respinning it anymore. The main motivation is to prevent us accidentally supporting bad configurations, such as legacy
2014 Nov 25
2
[PATCH v4 02/42] virtio: add support for 64 bit features.
...| 5 ++--- drivers/virtio/virtio_ring.c | 2 +- 14 files changed, 69 insertions(+), 44 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 7828a7f..149284e 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -101,7 +101,7 @@ struct virtio_device { const struct virtio_config_ops *config; const struct vringh_config_ops *vringh_config; struct list_head vqs; - u32 features; + u64 features; void *priv; }; diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index aa84d0e..022d904 100644 --- a/include/linux/virti...
2014 Nov 25
2
[PATCH v4 02/42] virtio: add support for 64 bit features.
...| 5 ++--- drivers/virtio/virtio_ring.c | 2 +- 14 files changed, 69 insertions(+), 44 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 7828a7f..149284e 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -101,7 +101,7 @@ struct virtio_device { const struct virtio_config_ops *config; const struct vringh_config_ops *vringh_config; struct list_head vqs; - u32 features; + u64 features; void *priv; }; diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index aa84d0e..022d904 100644 --- a/include/linux/virti...
2014 Nov 30
0
[PATCH v7 04/46] virtio: add support for 64 bit features.
...o.c | 2 +- drivers/virtio/virtio_pci.c | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 7828a7f..149284e 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -101,7 +101,7 @@ struct virtio_device { const struct virtio_config_ops *config; const struct vringh_config_ops *vringh_config; struct list_head vqs; - u32 features; + u64 features; void *priv; }; diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index ffc2ae0..f517884 100644 --- a/include/linux/virti...
2014 Dec 01
0
[PATCH v8 04/50] virtio: add support for 64 bit features.
...o.c | 2 +- drivers/virtio/virtio_pci.c | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 7828a7f..149284e 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -101,7 +101,7 @@ struct virtio_device { const struct virtio_config_ops *config; const struct vringh_config_ops *vringh_config; struct list_head vqs; - u32 features; + u64 features; void *priv; }; diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index ffc2ae0..f517884 100644 --- a/include/linux/virti...
2014 Nov 30
0
[PATCH v7 04/46] virtio: add support for 64 bit features.
...o.c | 2 +- drivers/virtio/virtio_pci.c | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 7828a7f..149284e 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -101,7 +101,7 @@ struct virtio_device { const struct virtio_config_ops *config; const struct vringh_config_ops *vringh_config; struct list_head vqs; - u32 features; + u64 features; void *priv; }; diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index ffc2ae0..f517884 100644 --- a/include/linux/virti...
2014 Dec 01
0
[PATCH v8 04/50] virtio: add support for 64 bit features.
...o.c | 2 +- drivers/virtio/virtio_pci.c | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 7828a7f..149284e 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -101,7 +101,7 @@ struct virtio_device { const struct virtio_config_ops *config; const struct vringh_config_ops *vringh_config; struct list_head vqs; - u32 features; + u64 features; void *priv; }; diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index ffc2ae0..f517884 100644 --- a/include/linux/virti...
2013 Apr 05
8
[PATCH 0/7] virtio cleanups
...verdue consolidation. Cheers, Rusty. Rusty Russell (7): virtio_config: introduce size-based accessors. virtio: use size-based config accessors. virtio_config: helpers for non-converting accessors. virtio_config: make transports implement accessors. virtio: use u32, not bitmap for struct virtio_device's features virtio: add support for 64 bit features. virtio: move vring structure into struct virtqueue. drivers/block/virtio_blk.c | 77 +++++------ drivers/char/virtio_console.c | 17 +-- drivers/lguest/lguest_device.c | 36 +++-- drivers/net/caif/caif_...
2013 Apr 05
8
[PATCH 0/7] virtio cleanups
...verdue consolidation. Cheers, Rusty. Rusty Russell (7): virtio_config: introduce size-based accessors. virtio: use size-based config accessors. virtio_config: helpers for non-converting accessors. virtio_config: make transports implement accessors. virtio: use u32, not bitmap for struct virtio_device's features virtio: add support for 64 bit features. virtio: move vring structure into struct virtqueue. drivers/block/virtio_blk.c | 77 +++++------ drivers/char/virtio_console.c | 17 +-- drivers/lguest/lguest_device.c | 36 +++-- drivers/net/caif/caif_...
2014 Nov 26
0
[PATCH v4 02/42] virtio: add support for 64 bit features.
...io/virtio_ring.c | 2 +- > 14 files changed, 69 insertions(+), 44 deletions(-) > > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > index 7828a7f..149284e 100644 > --- a/include/linux/virtio.h > +++ b/include/linux/virtio.h > @@ -101,7 +101,7 @@ struct virtio_device { > const struct virtio_config_ops *config; > const struct vringh_config_ops *vringh_config; > struct list_head vqs; > - u32 features; > + u64 features; > void *priv; > }; > > diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h > index...
2017 Mar 29
2
[PATCH 2/6] virtio: add context flag to find vqs
...| 3 +++ 11 files changed, 67 insertions(+), 29 deletions(-) diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop/vop_main.c index c2e29d7..a341938 100644 --- a/drivers/misc/mic/vop/vop_main.c +++ b/drivers/misc/mic/vop/vop_main.c @@ -278,7 +278,7 @@ static void vop_del_vqs(struct virtio_device *dev) static struct virtqueue *vop_find_vq(struct virtio_device *dev, unsigned index, void (*callback)(struct virtqueue *vq), - const char *name) + const char *name, bool ctx) { struct _vop_vdev *vdev = to_vopvdev(dev); struct vop_device *vpdev = vdev->v...