Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4160584ybb; Tue, 7 Apr 2020 01:53:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJ+j20FBqZw1Bly7+c2juE5irAF7V6oHFwpsz8hZwGLaHlqEydrERcJEkxGCdeZZ+l/uetg X-Received: by 2002:a4a:2a47:: with SMTP id x7mr985509oox.23.1586249618265; Tue, 07 Apr 2020 01:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586249618; cv=none; d=google.com; s=arc-20160816; b=Y8t8RWsYf5kDzNwPcEJ5qeLF7x/1ly9xKahleOb5fXp/cGTNcgUyAS7Eo7WDMwryym NJ0FIMPS2NzcAZ9bnfOphNQDE+boPD57Sr6nIyUh3bhKPH9swKlzPGbWp9RFgJ5x+tIA 6oDVHntvuiS6rrMECVL5mSNZAti7nW3/DsrkmH3fFYB3SAQonO8dQl9vKnPZmLDafVsQ 2KXliPNF4kEWQ3KDaMzw+ANfRdNtrgIEuPzvTR5L/35F2s+Mzwa+7UrVTYR6wHzmpfnw UJZshgMmK17RQ4pSeTR+5u1cnyo27hxKRLgChoCctac/pvhirV/LAEaf0S0B8a+0IAmc FSRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:in-reply-to :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jykHO/SKPEfQgLiTVDsBlq5E9x7OAuQZbAht/mZ4Uik=; b=qjbiAZDBtYxiGLExjFjmBuGXkYcMHPlxODVzf56Uu5CnQOjYYeLgRX48r7/57aaArn u/QmPk4qnQudWU+fTabsYtZf80sl1uInTjPDNj2aDST1ch89EDsvx6lQzqslUqrX002I IwPm2V0ODRr0rbbqgXlp8ifbPTWmKFZGNtmkWyFY0haFR05V5d71LjgKo77SKoBZKHGp OrPa7Zq3S6UdLfb1nnF/MY1stWgFQWPtVrnBXx0bhWVudyTCEQKDw9Im+PihTZTGYq2K j9rT/c74B2wMoUYTihKtULO0GbPGL2SnxTrn2EImM1CsKFdLF28jM66/x/rSfgOwpd1G h2sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fHqsYupL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b187si426616oif.221.2020.04.07.01.53.25; Tue, 07 Apr 2020 01:53:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fHqsYupL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727992AbgDGIvb (ORCPT + 99 others); Tue, 7 Apr 2020 04:51:31 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:35749 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725883AbgDGIvb (ORCPT ); Tue, 7 Apr 2020 04:51:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586249490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jykHO/SKPEfQgLiTVDsBlq5E9x7OAuQZbAht/mZ4Uik=; b=fHqsYupLnRTlUhY55L3qFm8pdRsImgQnKq5hG6jFNmnWjkvD49Uxh8FeqbpyAhPot4AGiB gzAGX2DxDUId8p/sKluL9eMDZV13Wqqe0+KMkfvkpDTE7b9QjGZeSGtOZt1nomsPHVqK0k NE5yeV3zrwDGAc4sonNL1wHeAo9KuTk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-357-FiAM1shJMnep_9mw09IkHA-1; Tue, 07 Apr 2020 04:51:28 -0400 X-MC-Unique: FiAM1shJMnep_9mw09IkHA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 54C161005513; Tue, 7 Apr 2020 08:51:27 +0000 (UTC) Received: from localhost (ovpn-113-168.ams2.redhat.com [10.36.113.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB08BCDBCA; Tue, 7 Apr 2020 08:51:24 +0000 (UTC) Date: Tue, 7 Apr 2020 09:51:23 +0100 From: Stefan Hajnoczi To: "Michael S. Tsirkin" Cc: linux-kernel@vger.kernel.org, Jason Wang , Paolo Bonzini , Jens Axboe , virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org Subject: Re: [PATCH v8 09/19] virtio: stop using legacy struct vring in kernel Message-ID: <20200407085123.GA247777@stefanha-x1.localdomain> References: <20200407011612.478226-1-mst@redhat.com> <20200407011612.478226-10-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200407011612.478226-10-mst@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Add an internal kernel-only struct vring and > switch everyone to use that. >=20 > Signed-off-by: Michael S. Tsirkin > --- > 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 --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl6MPwoACgkQnKSrs4Gr c8i4iwf/bOwj2ZidNGGENtcVu7gvojGcqqZUH3YTJ7iTnAiBQzurGIHN6p9vGEal 2cS8Jb9OuArHQhIfm5M/AaSzNa3zmy8D9l2tWRVFAooBSK40l4Q10e5EUkybhClw ITad9nQtPO0n0IGfFGrJasavS7MBhBJw/7wqNtzkHIxq3I86MKA9aLdefTGmkMVp +PJjhgvzRzjtmbHL/wIu9+bVEFEmMOIjTgHaOoaYvStvVmOqKEOtoiyyb/hormmM yLJJOmq4zMKsjpKYeQB4wmFDKtXheVRFrRPASciZEMRS8+dPVBRq7QzzWUdG1Awq edDSidc+l3t9UZBO/tsqBqQQSC6YNQ== =wat3 -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--