public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] virtio/vhost: fix alignment requirements
@ 2014-12-25 15:05 Michael S. Tsirkin
  2014-12-25 15:05 ` [PATCH v2 1/2] virtio_ring: document " Michael S. Tsirkin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael S. Tsirkin @ 2014-12-25 15:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: Rusty Russell

vhost incorrectly asked for 8 byte alignment for
used ring pointer, it should be 4 byte.

Let's add explicit macros for ring element alignment,
this makes it easier to make sure our requirements
match the spec.

Rusty, OK to merge this through my vhost tree, or do you
prefer merging this through yours?

Michael S. Tsirkin (2):
  virtio_ring: document alignment requirements
  vhost: relax used address alignment

 include/uapi/linux/virtio_ring.h |  7 +++++++
 drivers/vhost/vhost.c            | 10 +++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)

-- 
MST


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-27  9:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-25 15:05 [PATCH v2 0/2] virtio/vhost: fix alignment requirements Michael S. Tsirkin
2014-12-25 15:05 ` [PATCH v2 1/2] virtio_ring: document " Michael S. Tsirkin
2014-12-25 15:05 ` [PATCH v2 2/2] vhost: relax used address alignment Michael S. Tsirkin
2014-12-25 15:05 ` [PATCH v2 0/2] virtio/vhost: fix alignment requirements Michael S. Tsirkin
2014-12-27  9:22   ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox