From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B0FACD11DC for ; Thu, 21 Mar 2024 10:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=wTxDitpguc7D9IOv4I5f29Qm8gzbpWNMt1WDDHf3HJ8=; b=waZZXPuA2rGL2564edJzwC7XBR YbOhioJjXj4ajs6CE8mqKFcy2FD3M6T87x6s3xmx53isLiMX2WHAiROOrUCESNxBHpzA1APBKmYxE SjGTb9fw8JtgQNqdRO14Jr4GtXViVUJ0+VhTX2btdpONIPFzjqtVR5pxh8zn0KtKQXAfAAfbhR1tz 0HJOaXBSrGYnfPoMrurBH3242zpuUroJaHriPvMWGZhMYu6I8x9aWVHnEpSAlsm5edOjT2rdK/1ch rwLXyIowqLBpLm9+Ozb8OYD3nyykVeTRqBmlnC05Y7NvlBrKMl+ZexLr33UjXVA8ipCcbdV6SIyOx 1SXb5cdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnFSn-00000002bUy-0yAM; Thu, 21 Mar 2024 10:15:57 +0000 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnFSh-00000002bPG-1vFu for linux-um@lists.infradead.org; Thu, 21 Mar 2024 10:15:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1711016136; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=wTxDitpguc7D9IOv4I5f29Qm8gzbpWNMt1WDDHf3HJ8=; b=oAgxk2WC6a5apEfNAHFE85p7C0QRSzZm+ILKRMoJ+025dSbMtj4IPmAbDqlbIWiJzhR3YjJcRz8eZmvOULu31WWwrtRiAoWk3CN4MX0clrnh1gnJ4WbpqgpXRVRCgIA0hw1SqNReIAKg4Wz8ZmbVjpYcQ3Ux2Hqt4uEts4UsJyc= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R351e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=26;SR=0;TI=SMTPD_---0W3-MA6N_1711016132; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0W3-MA6N_1711016132) by smtp.aliyun-inc.com; Thu, 21 Mar 2024 18:15:33 +0800 From: Xuan Zhuo To: virtualization@lists.linux.dev Cc: Richard Weinberger , Anton Ivanov , Johannes Berg , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Vadim Pasternak , Bjorn Andersson , Mathieu Poirier , Cornelia Huck , Halil Pasic , Eric Farman , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , "Michael S. Tsirkin" , David Hildenbrand , Jason Wang , Xuan Zhuo , linux-um@lists.infradead.org, platform-driver-x86@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH vhost v4 0/6] refactor the params of find_vqs() Date: Thu, 21 Mar 2024 18:15:26 +0800 Message-Id: <20240321101532.59272-1-xuanzhuo@linux.alibaba.com> X-Mailer: git-send-email 2.32.0.3.g01195cf9f MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Git-Hash: 571c18a30348 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240321_031551_673738_F98C3CDF X-CRM114-Status: UNSURE ( 7.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+linux-um=archiver.kernel.org@lists.infradead.org This pathset is splited from the http://lore.kernel.org/all/20240229072044.77388-1-xuanzhuo@linux.alibaba.com That may needs some cycles to discuss. But that notifies too many people. But just the four commits need to notify so many people. And four commits are independent. So I split that patch set, let us review these first. The patch set try to refactor the params of find_vqs(). Then we can just change the structure, when introducing new features. Thanks. v4: 1. remove support for names array entries being null 2. remove cfg_idx from virtio_vq_config v3: 1. fix the bug: "assignment of read-only location '*cfg.names'" v2: 1. add kerneldoc for "struct vq_transport_config" @ilpo.jarvinen v1: 1. fix some comments from ilpo.jarvinen@linux.intel.com Xuan Zhuo (6): virtio_balloon: remove the dependence where names[] is null virtio: remove support for names array entries being null. virtio: find_vqs: pass struct instead of multi parameters virtio: vring_create_virtqueue: pass struct instead of multi parameters virtio: vring_new_virtqueue(): pass struct instead of multi parameters virtio_ring: simplify the parameters of the funcs related to vring_create/new_virtqueue() arch/um/drivers/virtio_uml.c | 33 ++--- drivers/platform/mellanox/mlxbf-tmfifo.c | 25 ++-- drivers/remoteproc/remoteproc_virtio.c | 34 ++--- drivers/s390/virtio/virtio_ccw.c | 35 ++--- drivers/virtio/virtio_balloon.c | 41 +++--- drivers/virtio/virtio_mmio.c | 33 ++--- drivers/virtio/virtio_pci_common.c | 62 +++----- drivers/virtio/virtio_pci_common.h | 9 +- drivers/virtio/virtio_pci_legacy.c | 16 ++- drivers/virtio/virtio_pci_modern.c | 37 +++-- drivers/virtio/virtio_ring.c | 173 ++++++++--------------- drivers/virtio/virtio_vdpa.c | 48 +++---- include/linux/virtio_config.h | 75 +++++++--- include/linux/virtio_ring.h | 93 +++++++----- tools/virtio/virtio_test.c | 4 +- tools/virtio/vringh_test.c | 28 ++-- 16 files changed, 351 insertions(+), 395 deletions(-) -- 2.32.0.3.g01195cf9f