[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200407085123.GA247777@stefanha-x1.localdomain>
Date: Tue, 7 Apr 2020 09:51:23 +0100
From: Stefan Hajnoczi <stefanha@...hat.com>
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: linux-kernel@...r.kernel.org, Jason Wang <jasowang@...hat.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Jens Axboe <axboe@...nel.dk>,
virtualization@...ts.linux-foundation.org,
linux-block@...r.kernel.org
Subject: Re: [PATCH v8 09/19] virtio: stop using legacy struct vring in kernel
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@...hat.com>
> ---
> 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@...hat.com>
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists