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

From
Michael S. Tsirkin <mst@redhat.com>
Date
2015-07-02 06:12:49
Also in
kvm, lkml, virtualization
Reply to
Linus Torvalds, 2015-07-01
On Wed, Jul 01, 2015 at 12:03:59PM -0700, Linus Torvalds wrote:
On Wed, Jul 1, 2015 at 12:02 PM, Linus Torvalds
[off-list ref] wrote:
quoted
Doing a unconditional byte swap is faster and simpler than the crazy
conditionals.
Unconditional endianness not only makes for simpler and faster code,
it also ends up being easier to debug and add things like type
annotations for sparse.

                Linus
At least this last one is well covered by these patches: this uses
separate sparse types so all accesses are statically verified by sparse
to use the correct accessor.

-- 
MST
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