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 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: "Michael S. Tsirkin" , Greg Kurz , Raphael Norwitz , Kevin Wolf , Hanna Reitz , Stefan Hajnoczi , Laurent Vivier , Amit Shah , "Marc-André Lureau" , Paolo Bonzini , Gerd Hoffmann , Jason Wang , Fam Zheng , "Dr. David Alan Gilbert" , David Hildenbrand , "Gonglei (Arei)" , Eric Auger , qemu-block@nongnu.org, virtio-fs@redhat.com 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); } -- 2.20.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 Content-Type: text/plain; charset="US-ASCII" Subject: [Virtio-fs] [PATCH v2 3/3] virtio-9p-device: switch to 32k max. transfer size List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Laurent Vivier , qemu-block@nongnu.org, "Michael S. Tsirkin" , Jason Wang , Amit Shah , David Hildenbrand , Raphael Norwitz , virtio-fs@redhat.com, Eric Auger , Hanna Reitz , "Gonglei (Arei)" , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= , Fam Zheng 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); } -- 2.20.1