Re: [PULL] virtio/vhost: cross endian support

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2015-07-01 19:02:59
Also in
kvm, lkml, virtualization
Reply to
Michael S. Tsirkin, 2015-07-01
On Wed, Jul 1, 2015 at 2:31 AM, Michael S. Tsirkin [off-list ref] wrote:
virtio/vhost: cross endian support
Ugh. Does this really have to be dynamic?

Can't virtio do the sane thing, and just use a _fixed_ endianness?

Doing a unconditional byte swap is faster and simpler than the crazy
conditionals. That's true regardless of endianness, but gets to be
even more so if the fixed endianness is little-endian, since BE is
not-so-slowly fading from the world.

               Linus
Thread (19 messages) 19 messages, 8 authors, last reply 2015-07-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help