search for: virtio_byteorder

Displaying 20 results from an estimated 117 matches for "virtio_byteorder".

2014 Oct 22
2
[PATCH RFC v3 01/16] virtio: memory access APIs
...onditionally, these will be useful e.g. for vhost. Add high level wrappers that will (in the future) query device endian-ness and act accordingly. At the moment, stub them out and assume native endian-ness everywhere. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_byteorder.h | 29 ++++++++++++++++++++++++ include/linux/virtio_config.h | 16 +++++++++++++ include/uapi/linux/virtio_ring.h | 49 ++++++++++++++++++++-------------------- include/uapi/linux/Kbuild | 1 + 4 files changed, 71 insertions(+), 24 deletions(-) create mode 100644 include/linux/virtio_...
2014 Oct 22
2
[PATCH RFC v3 01/16] virtio: memory access APIs
...onditionally, these will be useful e.g. for vhost. Add high level wrappers that will (in the future) query device endian-ness and act accordingly. At the moment, stub them out and assume native endian-ness everywhere. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_byteorder.h | 29 ++++++++++++++++++++++++ include/linux/virtio_config.h | 16 +++++++++++++ include/uapi/linux/virtio_ring.h | 49 ++++++++++++++++++++-------------------- include/uapi/linux/Kbuild | 1 + 4 files changed, 71 insertions(+), 24 deletions(-) create mode 100644 include/linux/virtio_...
2014 Dec 14
0
[PATCH 1/6] tools/virtio: more stubs
As usual, add more stubs to fix test build after main codebase changes. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- tools/virtio/linux/virtio.h | 1 + tools/virtio/linux/virtio_byteorder.h | 8 ++++++++ tools/virtio/linux/virtio_config.h | 25 +++++++++++++++++++++++-- tools/virtio/uapi/linux/virtio_types.h | 1 + 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 tools/virtio/linux/virtio_byteorder.h create mode 100644 tools/virtio/uapi/linux/virtio_type...
2014 Dec 14
0
[PATCH 1/6] tools/virtio: more stubs
As usual, add more stubs to fix test build after main codebase changes. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- tools/virtio/linux/virtio.h | 1 + tools/virtio/linux/virtio_byteorder.h | 8 ++++++++ tools/virtio/linux/virtio_config.h | 25 +++++++++++++++++++++++-- tools/virtio/uapi/linux/virtio_types.h | 1 + 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 tools/virtio/linux/virtio_byteorder.h create mode 100644 tools/virtio/uapi/linux/virtio_type...
2014 Nov 24
2
[PATCH v3 04/41] virtio: memory access APIs
...s for multi-byte integers > > in memory. > > > > Add low level wrappers that do a byteswap conditionally, these will be > > useful e.g. for vhost. Add high level wrappers that > > query device endian-ness and act accordingly. > > > diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h > > new file mode 100644 > > index 0000000..824ed0b > > --- /dev/null > > +++ b/include/linux/virtio_byteorder.h > > > +static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) > > +{ > > + if (l...
2014 Nov 24
2
[PATCH v3 04/41] virtio: memory access APIs
...s for multi-byte integers > > in memory. > > > > Add low level wrappers that do a byteswap conditionally, these will be > > useful e.g. for vhost. Add high level wrappers that > > query device endian-ness and act accordingly. > > > diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h > > new file mode 100644 > > index 0000000..824ed0b > > --- /dev/null > > +++ b/include/linux/virtio_byteorder.h > > > +static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) > > +{ > > + if (l...
2014 Dec 14
7
[PATCH 0/6] virtio 1.0: tools update
...l S. Tsirkin (6): tools/virtio: more stubs tools/virtio: fix vringh test tools/virtio: 64 bit features tools/virtio: enable -Werror tools/virtio: add virtio 1.0 in virtio_test tools/virtio: add virtio 1.0 in vringh_test tools/virtio/linux/virtio.h | 1 + tools/virtio/linux/virtio_byteorder.h | 8 ++++++++ tools/virtio/linux/virtio_config.h | 25 +++++++++++++++++++++++-- tools/virtio/uapi/linux/virtio_types.h | 1 + tools/virtio/virtio_test.c | 14 +++++++++++++- tools/virtio/vringh_test.c | 5 ++++- tools/virtio/Makefile | 2 +- 7 fi...
2014 Dec 14
7
[PATCH 0/6] virtio 1.0: tools update
...l S. Tsirkin (6): tools/virtio: more stubs tools/virtio: fix vringh test tools/virtio: 64 bit features tools/virtio: enable -Werror tools/virtio: add virtio 1.0 in virtio_test tools/virtio: add virtio 1.0 in vringh_test tools/virtio/linux/virtio.h | 1 + tools/virtio/linux/virtio_byteorder.h | 8 ++++++++ tools/virtio/linux/virtio_config.h | 25 +++++++++++++++++++++++-- tools/virtio/uapi/linux/virtio_types.h | 1 + tools/virtio/virtio_test.c | 14 +++++++++++++- tools/virtio/vringh_test.c | 5 ++++- tools/virtio/Makefile | 2 +- 7 fi...
2014 Nov 24
2
[PATCH v3 04/41] virtio: memory access APIs
...pecific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful e.g. for vhost. Add high level wrappers that query device endian-ness and act accordingly. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_byteorder.h | 59 +++++++++++++++++++++++++++++++++++++++ include/linux/virtio_config.h | 32 +++++++++++++++++++++ include/uapi/linux/virtio_ring.h | 45 ++++++++++++++--------------- include/uapi/linux/virtio_types.h | 48 +++++++++++++++++++++++++++++++ include/uapi/linux/Kbuild | 1 + 5 fi...
2014 Nov 24
2
[PATCH v3 04/41] virtio: memory access APIs
...pecific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful e.g. for vhost. Add high level wrappers that query device endian-ness and act accordingly. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_byteorder.h | 59 +++++++++++++++++++++++++++++++++++++++ include/linux/virtio_config.h | 32 +++++++++++++++++++++ include/uapi/linux/virtio_ring.h | 45 ++++++++++++++--------------- include/uapi/linux/virtio_types.h | 48 +++++++++++++++++++++++++++++++ include/uapi/linux/Kbuild | 1 + 5 fi...
2014 Nov 25
1
[PATCH v4 05/42] virtio: memory access APIs
...pecific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful e.g. for vhost. Add high level wrappers that query device endian-ness and act accordingly. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_byteorder.h | 59 +++++++++++++++++++++++++++++++++++++++ include/linux/virtio_config.h | 32 +++++++++++++++++++++ include/uapi/linux/virtio_ring.h | 45 ++++++++++++++--------------- include/uapi/linux/virtio_types.h | 48 +++++++++++++++++++++++++++++++ include/uapi/linux/Kbuild | 1 + 5 fi...
2014 Nov 25
1
[PATCH v4 05/42] virtio: memory access APIs
...pecific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful e.g. for vhost. Add high level wrappers that query device endian-ness and act accordingly. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_byteorder.h | 59 +++++++++++++++++++++++++++++++++++++++ include/linux/virtio_config.h | 32 +++++++++++++++++++++ include/uapi/linux/virtio_ring.h | 45 ++++++++++++++--------------- include/uapi/linux/virtio_types.h | 48 +++++++++++++++++++++++++++++++ include/uapi/linux/Kbuild | 1 + 5 fi...
2015 Apr 07
1
[PATCH v3 6/7] virtio: add explicit big-endian support to memory accessors
...any functionality, nor it does add overhead. > > Signed-off-by: Greg Kurz <gkurz at linux.vnet.ibm.com> > --- > drivers/net/macvtap.c | 4 +++- > drivers/net/tun.c | 4 +++- > drivers/vhost/vhost.h | 4 +++- > include/linux/virtio_byteorder.h | 24 ++++++++++++++---------- > include/linux/virtio_config.h | 4 +++- > include/linux/vringh.h | 4 +++- > 6 files changed, 29 insertions(+), 15 deletions(-) > > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > index a2f2958..0a03a66 100644 &...
2015 Apr 07
1
[PATCH v3 6/7] virtio: add explicit big-endian support to memory accessors
...any functionality, nor it does add overhead. > > Signed-off-by: Greg Kurz <gkurz at linux.vnet.ibm.com> > --- > drivers/net/macvtap.c | 4 +++- > drivers/net/tun.c | 4 +++- > drivers/vhost/vhost.h | 4 +++- > include/linux/virtio_byteorder.h | 24 ++++++++++++++---------- > include/linux/virtio_config.h | 4 +++- > include/linux/vringh.h | 4 +++- > 6 files changed, 29 insertions(+), 15 deletions(-) > > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > index a2f2958..0a03a66 100644 &...
2015 Apr 21
1
[PATCH v4 6/8] virtio: add explicit big-endian support to memory accessors
...es add overhead. > > Signed-off-by: Greg Kurz <gkurz at linux.vnet.ibm.com> > --- OK overall. Style comment: > drivers/net/macvtap.c | 4 +++- > drivers/net/tun.c | 4 +++- > drivers/vhost/vhost.h | 4 +++- > include/linux/virtio_byteorder.h | 24 ++++++++++++++---------- > include/linux/virtio_config.h | 4 +++- > include/linux/vringh.h | 4 +++- > 6 files changed, 29 insertions(+), 15 deletions(-) > > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > index a2f2958..0a03a66 100644 &...
2015 Apr 21
1
[PATCH v4 6/8] virtio: add explicit big-endian support to memory accessors
...es add overhead. > > Signed-off-by: Greg Kurz <gkurz at linux.vnet.ibm.com> > --- OK overall. Style comment: > drivers/net/macvtap.c | 4 +++- > drivers/net/tun.c | 4 +++- > drivers/vhost/vhost.h | 4 +++- > include/linux/virtio_byteorder.h | 24 ++++++++++++++---------- > include/linux/virtio_config.h | 4 +++- > include/linux/vringh.h | 4 +++- > 6 files changed, 29 insertions(+), 15 deletions(-) > > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > index a2f2958..0a03a66 100644 &...
2014 Oct 23
0
[PATCH RFC v3 01/16] virtio: memory access APIs
...e.g. for vhost. Add high level wrappers that will (in the > future) query device endian-ness and act accordingly. > > At the moment, stub them out and assume native endian-ness everywhere. > > Signed-off-by: Michael S. Tsirkin <mst at redhat.com> > --- > include/linux/virtio_byteorder.h | 29 ++++++++++++++++++++++++ > include/linux/virtio_config.h | 16 +++++++++++++ > include/uapi/linux/virtio_ring.h | 49 ++++++++++++++++++++-------------------- > include/uapi/linux/Kbuild | 1 + > 4 files changed, 71 insertions(+), 24 deletions(-) > create mode 100...
2014 Nov 30
1
[PATCH v7 08/46] virtio: memory access APIs
...pecific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful e.g. for vhost. Add high level wrappers that query device endian-ness and act accordingly. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_byteorder.h | 59 +++++++++++++++++++++++++++++++++++++++ include/linux/virtio_config.h | 32 +++++++++++++++++++++ include/uapi/linux/virtio_ring.h | 45 ++++++++++++++--------------- include/uapi/linux/virtio_types.h | 46 ++++++++++++++++++++++++++++++ include/uapi/linux/Kbuild | 1 + 5 fil...
2014 Nov 30
1
[PATCH v7 08/46] virtio: memory access APIs
...pecific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful e.g. for vhost. Add high level wrappers that query device endian-ness and act accordingly. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_byteorder.h | 59 +++++++++++++++++++++++++++++++++++++++ include/linux/virtio_config.h | 32 +++++++++++++++++++++ include/uapi/linux/virtio_ring.h | 45 ++++++++++++++--------------- include/uapi/linux/virtio_types.h | 46 ++++++++++++++++++++++++++++++ include/uapi/linux/Kbuild | 1 + 5 fil...
2015 Apr 07
0
[PATCH v3 6/7] virtio: add explicit big-endian support to memory accessors
...lper. This patch doesn't change any functionality, nor it does add overhead. Signed-off-by: Greg Kurz <gkurz at linux.vnet.ibm.com> --- drivers/net/macvtap.c | 4 +++- drivers/net/tun.c | 4 +++- drivers/vhost/vhost.h | 4 +++- include/linux/virtio_byteorder.h | 24 ++++++++++++++---------- include/linux/virtio_config.h | 4 +++- include/linux/vringh.h | 4 +++- 6 files changed, 29 insertions(+), 15 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index a2f2958..0a03a66 100644 --- a/drivers/net/macvtap.c +++...