Re: [PATCH v8 09/19] virtio: stop using legacy struct vring in kernel

From: Stefan Hajnoczi
Date: Tue Apr 07 2020 - 04:51:33 EST


On Mon, Apr 06, 2020 at 09:16:46PM -0400, Michael S. Tsirkin wrote:
> struct vring (in the uapi directory) and supporting APIs are kept
> around to solely avoid breaking old userspace builds.
> It's not actually part of the UAPI - it was kept in the UAPI
> header by mistake, and using it in kernel isn't necessary
> and prevents us from making changes safely.
> In particular, the APIs actually assume the legacy layout.
>
> Add an internal kernel-only struct vring and
> switch everyone to use that.
>
> Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
> ---
> drivers/block/virtio_blk.c | 1 +
> include/linux/virtio.h | 1 -
> include/linux/virtio_ring.h | 10 ++++++++++
> include/linux/vringh.h | 1 +
> include/uapi/linux/virtio_ring.h | 26 ++++++++++++++++----------
> 5 files changed, 28 insertions(+), 11 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature