[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 01/10] virtio: move VirtQueueElement at the begi
From: |
Cornelia Huck |
Subject: |
Re: [Qemu-devel] [PATCH 01/10] virtio: move VirtQueueElement at the beginning of the structs |
Date: |
Tue, 19 Jan 2016 13:09:57 +0100 |
On Fri, 15 Jan 2016 13:41:49 +0100
Paolo Bonzini <address@hidden> wrote:
> The next patch will make virtqueue_pop/vring_pop allocate memory for a
s/will make/will make it possible for/
?
I had to spend some time grepping through the code to find that blk and
scsi (and gpu, which already had elem at the beginning of its
structure) are the only ones that work like this and that other devices
do not need any change.
> "subclass" of VirtQueueElement. For this to work, VirtQueueElement
> must be the first field in the containing struct.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> hw/scsi/virtio-scsi.c | 3 +--
> include/hw/virtio/virtio-blk.h | 2 +-
> include/hw/virtio/virtio-scsi.h | 13 ++++++-------
> 3 files changed, 8 insertions(+), 10 deletions(-)
Otherwise,
Reviewed-by: Cornelia Huck <address@hidden>
- [Qemu-devel] [PATCH 00/10] virtio/vring: optimization patches, Paolo Bonzini, 2016/01/15
- [Qemu-devel] [PATCH 03/10] virtio: introduce qemu_get/put_virtqueue_element, Paolo Bonzini, 2016/01/15
- [Qemu-devel] [PATCH 05/10] virtio: slim down allocation of VirtQueueElements, Paolo Bonzini, 2016/01/15
- [Qemu-devel] [PATCH 06/10] vring: slim down allocation of VirtQueueElements, Paolo Bonzini, 2016/01/15
- [Qemu-devel] [PATCH 04/10] virtio: introduce virtqueue_alloc_element, Paolo Bonzini, 2016/01/15