[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 15:01:02 +0100 |
On Tue, 19 Jan 2016 14:22:37 +0100
Paolo Bonzini <address@hidden> wrote:
> The next patch will make virtqueue_pop/vring_pop allocate memory for the
> VirtQueueElement. In some cases (blk, scsi, gpu) the device wants to
> extend VirtQueueElement with device-specific fields and, until now, the
> place of the VirtQueueElement within the containing struct didn't
> matter. When allocating the entire block in virtqueue_pop/vring_pop,
> however, the containing struct must basically be a "subclass" of
> VirtQueueElement, with the VirtQueueElement as the first field. Make
> that the case for blk and scsi; gpu is already doing it.
Sounds good!
- [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
- [Qemu-devel] [PATCH 08/10] virtio: cache used_idx in a VirtQueue field, Paolo Bonzini, 2016/01/15