]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio dataplane: adapt dataplane for virtio Version 1
authorPierre Morel <pmorel@linux.vnet.ibm.com>
Mon, 7 Sep 2015 11:33:56 +0000 (13:33 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 21 Oct 2015 01:08:04 +0000 (20:08 -0500)
commit0fdf9f756fff60ec1c02dbd59698ba3dbb30eabe
tree6ab8500665f1396dbdb7927af4b213da685d4c04
parentd077545dfef3d59f0286e0cb28cdb1c6d0570c22
virtio dataplane: adapt dataplane for virtio Version 1

Let dataplane allocate different region for the desc/avail/used
ring regions.
Take VIRTIO_RING_F_EVENT_IDX into account to increase the used/avail
rings accordingly.

[Fix 32-bit builds by changing 16lx format specifier to HWADDR_PRIx.
--Stefan]

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Tested-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Message-id: 1441625636-23773-1-git-send-email-pmorel@linux.vnet.ibm.com
(changed __virtio16 into uint16_t,
 map descriptor table and available ring read-only)
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit a9718ef0005d6910097788936dc40c0204713729)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/dataplane/vring.c
include/hw/virtio/dataplane/vring.h