search for: a2f2f22

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

2014 Oct 21
2
[PATCH RFC] virtio 1.0 vring endian-ness
...start at 0. */ - return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); + return (__virtio16)(new_idx - event_idx - 1) < (__virtio16)(new_idx - old); } #endif /* _UAPI_LINUX_VIRTIO_RING_H */ diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_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 stru...
2014 Oct 21
2
[PATCH RFC] virtio 1.0 vring endian-ness
...start at 0. */ - return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); + return (__virtio16)(new_idx - event_idx - 1) < (__virtio16)(new_idx - old); } #endif /* _UAPI_LINUX_VIRTIO_RING_H */ diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_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 stru...
2014 Oct 22
0
[PATCH RFC] virtio 1.0 vring endian-ness
...t; + __virtio32 len; > }; > > struct vring_used { > - __u16 flags; > - __u16 idx; > + __virtio16 flags; > + __virtio16 idx; > struct vring_used_elem ring[]; > }; > > diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_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 */ > +#...