search for: vq_le

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

2014 Oct 21
2
[PATCH RFC] virtio 1.0 vring endian-ness
...io_ring.c index 61a1fe1..a2f2f22 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -98,6 +98,8 @@ struct vring_virtqueue }; #define to_vvq(_vq) container_of(_vq, struct vring_virtqueue, vq) +/* Will become vq->little_endian once we support virtio 1.0 */ +#define vq_le(vq) (false) static struct vring_desc *alloc_indirect(unsigned int total_sg, gfp_t gfp) { @@ -116,7 +118,7 @@ static struct vring_desc *alloc_indirect(unsigned int total_sg, gfp_t gfp) return NULL; for (i = 0; i < total_sg; i++) - desc[i].next = i+1; + desc[i].next = cpu_to_virtio16(...
2014 Oct 21
2
[PATCH RFC] virtio 1.0 vring endian-ness
...io_ring.c index 61a1fe1..a2f2f22 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -98,6 +98,8 @@ struct vring_virtqueue }; #define to_vvq(_vq) container_of(_vq, struct vring_virtqueue, vq) +/* Will become vq->little_endian once we support virtio 1.0 */ +#define vq_le(vq) (false) static struct vring_desc *alloc_indirect(unsigned int total_sg, gfp_t gfp) { @@ -116,7 +118,7 @@ static struct vring_desc *alloc_indirect(unsigned int total_sg, gfp_t gfp) return NULL; for (i = 0; i < total_sg; i++) - desc[i].next = i+1; + desc[i].next = cpu_to_virtio16(...
2014 Oct 22
0
[PATCH RFC] virtio 1.0 vring endian-ness
...> --- a/drivers/virtio/virtio_ring.c > +++ b/drivers/virtio/virtio_ring.c > @@ -98,6 +98,8 @@ struct vring_virtqueue > }; > > #define to_vvq(_vq) container_of(_vq, struct vring_virtqueue, vq) > +/* Will become vq->little_endian once we support virtio 1.0 */ > +#define vq_le(vq) (false) All virtqueues inherit this property from their device, right? Do you want to propagate this to the virtqueues if the guest negotiated virtio-1 for the device? > > static struct vring_desc *alloc_indirect(unsigned int total_sg, gfp_t gfp) > { > @@ -235,13 +237,13 @@ st...