From patchwork Mon Oct 4 19:38:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Schoenebeck X-Patchwork-Id: 12534731 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58AEDC433F5 for ; Mon, 4 Oct 2021 20:10:51 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0CCDF613D2 for ; Mon, 4 Oct 2021 20:10:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0CCDF613D2 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=crudebyte.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:38766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXUIU-0000Ik-2i for qemu-devel@archiver.kernel.org; Mon, 04 Oct 2021 16:10:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXUG7-00060n-Ry; Mon, 04 Oct 2021 16:08:26 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]:36813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXUG6-0001MW-5e; Mon, 04 Oct 2021 16:08:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Subject:Date:From:References:In-Reply-To: Message-Id:Content-Type:Content-Transfer-Encoding:MIME-Version:Content-ID: Content-Description; bh=f4VjqFwtddhhj6avEVv72Wovsfu0a2P1y6ipMsVQxmA=; b=IygOj m3X/nSIkD2nnaQX8vUWiOXXWCOtw0SeHxoPvSZECg4Yeg9rTx+lD1LdOdl9L7NXoCA++t8jqwI8WV vyz59+yFPJTi9Dbj4279T5Lv3uaQLRs914I4tikhhrwEriiIbPIJcNYt5bVBG6HU3jSaRdweDrUQJ ScW/vbDJY9QXwo6rpeVWCdoJYjuD931OoPLRhcbMVXjNvY9GES/SOpKzX2gvIcnJ9oYBElXAMjhjK 71en4UlA3VR/XruMdBBw7aN9yvfErHlFXIHEKYkOVaq8pEe5Ccv4DceCafHRsowEbeX0giB9vz1xb OJTKFPQeBJqTP0lGDJOog/GlF8knQ==; Message-Id: In-Reply-To: References: From: Christian Schoenebeck Date: Mon, 4 Oct 2021 21:38:12 +0200 Subject: [PATCH v2 3/3] virtio-9p-device: switch to 32k max. transfer size To: qemu-devel@nongnu.org Cc: =?unknown-8bit?b?Ik1pY2hhZWwgUy4gVHNpcmtpbiIgPG1zdEByZWRoYXQuY29tPiw=?= =?unknown-8bit?q?_Greg_Kurz_=3Cgroug=40kaod=2Eorg=3E=2C?= =?unknown-8bit?q?_Raphael_Norwitz_=3Craphael=2Enorwitz=40nutanix=2Ecom=3E=2C?= =?unknown-8bit?q?_Kevin_Wolf_=3Ckwolf=40redhat=2Ecom=3E=2C?= =?unknown-8bit?q?_Hanna_Reitz_=3Chreitz=40redhat=2Ecom=3E=2C?= =?unknown-8bit?q?_Stefan_Hajnoczi_=3Cstefanha=40redhat=2Ecom=3E=2C?= =?unknown-8bit?q?_Laurent_Vivier_=3Clvivier=40redhat=2Ecom=3E=2C?= =?unknown-8bit?q?_Amit_Shah_=3Camit=40kernel=2Eorg=3E=2C?= =?unknown-8bit?q?_=22Marc-Andr=C3=A9_Lureau=22_=3Cmarcandre=2Elureau=40redha?= =?unknown-8bit?q?t=2Ecom=3E=2C?= =?unknown-8bit?q?_Paolo_Bonzini_=3Cpbonzini=40redhat=2Ecom=3E=2C?= =?unknown-8bit?q?_Gerd_Hoffmann_=3Ckraxel=40redhat=2Ecom=3E=2C?= =?unknown-8bit?q?_Jason_Wang_=3Cjasowang=40redhat=2Ecom=3E=2C?= =?unknown-8bit?q?_Fam_Zheng_=3Cfam=40euphon=2Enet=3E=2C?= =?unknown-8bit?q?_=22Dr=2E_David_Alan_Gilbert=22_=3Cdgilbert=40redhat=2Ecom?= =?unknown-8bit?q?=3E=2C?= =?unknown-8bit?q?_David_Hildenbrand_=3Cdavid=40redhat=2Ecom=3E=2C?= =?unknown-8bit?b?ICJHb25nbGVpIChBcmVpKSIgPGFyZWkuZ29uZ2xlaUBodWF3ZWkuY29t?= =?unknown-8bit?b?Piw=?= =?unknown-8bit?q?_Eric_Auger_=3Ceric=2Eauger=40redhat=2Ecom=3E=2C?= =?unknown-8bit?q?_qemu-block=40nongnu=2Eorg=2C?= =?unknown-8bit?q?_virtio-fs=40redhat=2Ecom?= Received-SPF: none client-ip=91.194.90.13; envelope-from=ae0464f653ef20292e335ba3de0d62ab3ce8c72c@lizzy.crudebyte.com; helo=lizzy.crudebyte.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" 9pfs supports the new maximum virtio queue size of 32k, so let's switch the 9pfs virtio transport from 1k to 32k. This will allow a maximum 'msize' option (maximum message size) by 9p client of approximately 128M (assuming 4k page size, in practice slightly smaller, e.g. with Linux client minus 2 pages). Signed-off-by: Christian Schoenebeck --- hw/9pfs/virtio-9p-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index 9013e7df6e..cd5d95dd51 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -217,7 +217,7 @@ static void virtio_9p_device_realize(DeviceState *dev, Error **errp) v->config_size = sizeof(struct virtio_9p_config) + strlen(s->fsconf.tag); virtio_init(vdev, "virtio-9p", VIRTIO_ID_9P, v->config_size, - VIRTQUEUE_LEGACY_MAX_SIZE); + VIRTQUEUE_MAX_SIZE); v->vq = virtio_add_queue(vdev, MAX_REQ, handle_9p_output); }