On Wed, 9 Sep 2015 10:29:51 +0100 Stefan Hajnoczi <stefa...@gmail.com> wrote:
> On Mon, Sep 07, 2015 at 01:33:56PM +0200, Pierre Morel wrote: > > 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. > > > > Signed-off-by: Pierre Morel <pmo...@linux.vnet.ibm.com> > > (changed __virtio16 into uint16_t, > > map descriptor table and available ring read-only) > > Signed-off-by: Greg Kurz <gk...@linux.vnet.ibm.com> > > --- > > > > Changes from V4: > > - added comments for VIRTIO_RING_F_EVENT_IDX and mapping > > - use uint16_t as in ring definitions instead of __virtio16 > > - map descriptor table and available ring read-only > > > > Changes from V3: > > - added changelog > > > > Changes from V2: > > - incorporate the code directly in vring_setup(). > > - added room for the event indexes used with VIRTIO_RING_F_EVENT_IDX > > > > Changes from v1: > > - use a macro to gain LOCs inside of vring_setup() > > > > hw/virtio/dataplane/vring.c | 66 > > +++++++++++++++++++++++++++++-------- > > include/hw/virtio/dataplane/vring.h | 4 ++- > > 2 files changed, 55 insertions(+), 15 deletions(-) > > Thanks, applied to my block tree: > https://github.com/stefanha/qemu/commits/block > > Stefan > Cc: qemu-sta...@nongnu.org -- Greg