[U-Boot] [PATCH 03/27] virtio: Add codes for virtual queue/ring management

Simon Glass sjg at chromium.org
Thu Sep 27 13:42:07 UTC 2018


On 23 September 2018 at 06:42, Bin Meng <bmeng.cn at gmail.com> wrote:
> From: Tuomas Tynkkynen <tuomas.tynkkynen at iki.fi>
>
> This adds support for managing virtual queue/ring, the channel
> for high performance I/O between host and guest.
>
> Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen at iki.fi>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  drivers/virtio/Makefile      |   2 +-
>  drivers/virtio/virtio_ring.c | 356 +++++++++++++++++++++++++++++++++++++++++++
>  include/virtio_ring.h        | 320 ++++++++++++++++++++++++++++++++++++++
>  3 files changed, 677 insertions(+), 1 deletion(-)
>  create mode 100644 drivers/virtio/virtio_ring.c
>  create mode 100644 include/virtio_ring.h

Seems like vring_create_virtqueue() should return an error code rather
than a pointer?

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list