search for: vhost_legacy_is_little_endian

Displaying 7 results from an estimated 7 matches for "vhost_legacy_is_little_endian".

2015 Apr 07
1
[PATCH v3 7/7] vhost: feature to set the vring endianness
...le_endian; > }; > > struct vhost_dev { > @@ -173,11 +176,23 @@ static inline bool vhost_has_feature(struct vhost_virtqueue *vq, int bit) > return vq->acked_features & (1ULL << bit); > } > > +#ifdef CONFIG_VHOST_SET_ENDIAN_LEGACY > +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) > +{ > + return vq->legacy_is_little_endian; > +} > +#else > +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) > +{ > + return virtio_legacy_is_little_endian(); > +} > +#endif > + > static inline bool vhost...
2015 Apr 07
1
[PATCH v3 7/7] vhost: feature to set the vring endianness
...le_endian; > }; > > struct vhost_dev { > @@ -173,11 +176,23 @@ static inline bool vhost_has_feature(struct vhost_virtqueue *vq, int bit) > return vq->acked_features & (1ULL << bit); > } > > +#ifdef CONFIG_VHOST_SET_ENDIAN_LEGACY > +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) > +{ > + return vq->legacy_is_little_endian; > +} > +#else > +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) > +{ > + return virtio_legacy_is_little_endian(); > +} > +#endif > + > static inline bool vhost...
2015 Apr 07
1
[PATCH v3 7/7] vhost: feature to set the vring endianness
...le_endian; > }; > > struct vhost_dev { > @@ -173,11 +176,23 @@ static inline bool vhost_has_feature(struct vhost_virtqueue *vq, int bit) > return vq->acked_features & (1ULL << bit); > } > > +#ifdef CONFIG_VHOST_SET_ENDIAN_LEGACY > +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) > +{ > + return vq->legacy_is_little_endian; > +} > +#else > +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) > +{ > + return virtio_legacy_is_little_endian(); > +} > +#endif > + > static inline bool vhost...
2015 Apr 07
1
[PATCH v3 7/7] vhost: feature to set the vring endianness
...le_endian; > }; > > struct vhost_dev { > @@ -173,11 +176,23 @@ static inline bool vhost_has_feature(struct vhost_virtqueue *vq, int bit) > return vq->acked_features & (1ULL << bit); > } > > +#ifdef CONFIG_VHOST_SET_ENDIAN_LEGACY > +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) > +{ > + return vq->legacy_is_little_endian; > +} > +#else > +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) > +{ > + return virtio_legacy_is_little_endian(); > +} > +#endif > + > static inline bool vhost...
2015 Apr 07
0
[PATCH v3 7/7] vhost: feature to set the vring endianness
...with legacy virtio. */ + bool legacy_is_little_endian; }; struct vhost_dev { @@ -173,11 +176,23 @@ static inline bool vhost_has_feature(struct vhost_virtqueue *vq, int bit) return vq->acked_features & (1ULL << bit); } +#ifdef CONFIG_VHOST_SET_ENDIAN_LEGACY +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) +{ + return vq->legacy_is_little_endian; +} +#else +static inline bool vhost_legacy_is_little_endian(struct vhost_virtqueue *vq) +{ + return virtio_legacy_is_little_endian(); +} +#endif + static inline bool vhost_is_little_endian(struct vhost_virtqueue *vq) { if (...
2015 Apr 07
13
[PATCH v3 0/7] vhost: support for cross endian guests
Hi, This patchset allows vhost to be used with legacy virtio when guest and host have a different endianness. Patches 1-6 remain the same as the previous post. Patch 7 was heavily changed according to MST's comments. --- Greg Kurz (7): virtio: introduce virtio_is_little_endian() helper tun: add tun_is_little_endian() helper macvtap: introduce macvtap_is_little_endian()
2015 Apr 07
13
[PATCH v3 0/7] vhost: support for cross endian guests
Hi, This patchset allows vhost to be used with legacy virtio when guest and host have a different endianness. Patches 1-6 remain the same as the previous post. Patch 7 was heavily changed according to MST's comments. --- Greg Kurz (7): virtio: introduce virtio_is_little_endian() helper tun: add tun_is_little_endian() helper macvtap: introduce macvtap_is_little_endian()