All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] vhost: fix vring layout
@ 2016-11-04  8:39 Greg Kurz
  2016-11-04  8:39 ` [Qemu-devel] [PATCH 1/3] vhost: adapt vhost_verify_ring_mappings() to virtio 1 ring layout Greg Kurz
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Greg Kurz @ 2016-11-04  8:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: Cornelia Huck, Pierre Morel, Michael S. Tsirkin

The vhost code currently assumes vring are mapped in memory following the
legacy virtio layout. This may cause QEMU to fail with virtio 1 devices
if the used ring is mapped below the descriptor table.

---

Greg Kurz (3):
      vhost: adapt vhost_verify_ring_mappings() to virtio 1 ring layout
      vhost: drop legacy vring layout bits
      virtio: drop virtio_queue_get_ring_{size,addr}()


 hw/virtio/vhost.c          |   92 +++++++++++++++++++++++++++++---------------
 hw/virtio/virtio.c         |   11 -----
 include/hw/virtio/vhost.h  |    7 ++-
 include/hw/virtio/virtio.h |    2 -
 4 files changed, 64 insertions(+), 48 deletions(-)

--
Greg

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

end of thread, other threads:[~2016-11-04  9:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-04  8:39 [Qemu-devel] [PATCH 0/3] vhost: fix vring layout Greg Kurz
2016-11-04  8:39 ` [Qemu-devel] [PATCH 1/3] vhost: adapt vhost_verify_ring_mappings() to virtio 1 ring layout Greg Kurz
2016-11-04  9:38   ` Cornelia Huck
2016-11-04  9:52     ` Greg Kurz
2016-11-04  8:39 ` [Qemu-devel] [PATCH 2/3] vhost: drop legacy vring layout bits Greg Kurz
2016-11-04  9:40   ` Cornelia Huck
2016-11-04  9:53     ` Greg Kurz
2016-11-04  8:39 ` [Qemu-devel] [PATCH 3/3] virtio: drop virtio_queue_get_ring_{size, addr}() Greg Kurz
2016-11-04  9:42   ` Cornelia Huck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.