From patchwork Mon Sep 20 16:43:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Schoenebeck X-Patchwork-Id: 12506157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56BB2C433FE for ; Mon, 20 Sep 2021 18:14:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4299A613E6 for ; Mon, 20 Sep 2021 18:14:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351611AbhITSP7 (ORCPT ); Mon, 20 Sep 2021 14:15:59 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]:44745 "EHLO lizzy.crudebyte.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350780AbhITSH0 (ORCPT ); Mon, 20 Sep 2021 14:07:26 -0400 X-Greylist: delayed 3150 seconds by postgrey-1.27 at vger.kernel.org; Mon, 20 Sep 2021 14:07:26 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Subject:Date:From:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Content-ID: Content-Description; bh=2acrbVCK2C0tCGf+WWirJP4DaHOyBUdmzXbdsZb3Zuw=; b=QJMEu Hq9Fc3t7eU0bk/z6GKQpONkoKF5I4F1kb9FpuVTrxzo4mLcATL/qaDaWfDzNpMMaHl47T13SY3bHN qT/4VqxDs/gUcgiwdxtV2ZlDiY6SRnWEUk2E2g/J4LdMaPwEU7E0Iru+JkSYd0U3KqYGE4qYR7h8C LSDB/g+cBrhpjgJ7cLwbHFCPymPHWwMkJhJmxzQORaQm9TyuoivgbYHxfdJW9+P0RaeEHbrTvz02j /N4BgZzJosVKwCfdsEtrxb1+HkXCBptgt7Ldnf1xtfcMTkfkIJ2/c5MZrIyilTrNyqYc5HDN4PGg2 uOZj9qc+X5Mt29IqEjs3lcFe1yDxA==; Message-Id: From: Christian Schoenebeck Date: Mon, 20 Sep 2021 18:43:30 +0200 Subject: [PATCH v2 0/7] net/9p: remove msize limit in virtio transport To: v9fs-developer@lists.sourceforge.net Cc: netdev@vger.kernel.org, Dominique Martinet , Eric Van Hensbergen , Latchesar Ionkov , Greg Kurz , Vivek Goyal Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series aims to get get rid of the current 500k 'msize' limitation in the 9p virtio transport, which is currently a bottleneck for performance of 9p mounts. This is a follow-up of the following series and discussion: https://lore.kernel.org/all/28bb651ae0349a7d57e8ddc92c1bd5e62924a912.1630770829.git.linux_oss@crudebyte.com/T/#eb647d0c013616cee3eb8ba9d87da7d8b1f476f37 Known limitation: With this series applied I can run QEMU host <-> 9P virtio <-> Linux guest with up to 3 MB msize. If I try to run it with 4 MB it seems to hit some limitation on QEMU side: qemu-system-x86_64: virtio: too many write descriptors in indirect table I haven't looked into this issue yet. Testing and feedback appreciated! v1 -> v2: * Fix memory leak [patch 6]. * Use pr_info() instead of p9_debug(P9_DEBUG_ERROR, ...) for user info [patch 1]. * Show user info message if chained SG lists are not supported on architecture [patch 6]. * Kernel doc fixes [patch 4], [patch 6]. Christian Schoenebeck (7): net/9p: show error message if user 'msize' cannot be satisfied 9p/trans_virtio: separate allocation of scatter gather list 9p/trans_virtio: turn amount of sg lists into runtime info 9p/trans_virtio: introduce struct virtqueue_sg net/9p: add trans_maxsize to struct p9_client 9p/trans_virtio: support larger msize values 9p/trans_virtio: resize sg lists to whatever is possible include/net/9p/client.h | 2 + net/9p/client.c | 17 ++- net/9p/trans_virtio.c | 290 ++++++++++++++++++++++++++++++++++------ 3 files changed, 269 insertions(+), 40 deletions(-)