From nobody Sun Feb 8 19:03:24 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=crudebyte.com ARC-Seal: i=1; a=rsa-sha256; t=1633285992; cv=none; d=zohomail.com; s=zohoarc; b=NRjWyR/kU82Va0d+t1PS4gL6ongnUygc1yAIlAZU3TY1hkrERrzJCgMdprUkqkfiuhrHJEm4N19SDjYGw+uTMwysesE6YeUJEvJe93L0QEMWmOlxl51BmhSzTuoy7KVvcEp7hUyf7DMC/EyT2pB/+FZMHTW67LhfgUtzzBGtuoU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1633285992; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=ofIbKXcw5MeCVTtfInRG0pIYaeihr0khMk0pyTGTMfU=; b=OSkPveoD5QD8XNFSxyvVCgTOmMAWx1e34x/a/P8jXmaa+zcWkD0OVj4mS9n4kft9F+Rsv6vBAAMEiHlPiVcpfLrYZdd2Jngh15t+Wuanm7NjIxcmihEBgSIN3hn5R4iOVwgD9fAAMKam5FusE2YNarrM3YetyYORm+q7fpqz9RU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1633285991996698.6114658659313; Sun, 3 Oct 2021 11:33:11 -0700 (PDT) Received: from localhost ([::1]:43082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX6IQ-0002Hw-5o for importer@patchew.org; Sun, 03 Oct 2021 14:33:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <0ddf07066a45508848f78317aa311c2a8120aa9d@lizzy.crudebyte.com>) id 1mX6Fy-0000gb-Bj for qemu-devel@nongnu.org; Sun, 03 Oct 2021 14:30:40 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]:57221) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <0ddf07066a45508848f78317aa311c2a8120aa9d@lizzy.crudebyte.com>) id 1mX6Fs-00009e-Dk for qemu-devel@nongnu.org; Sun, 03 Oct 2021 14:30:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Message-Id:Cc:To:Subject:Date:From:References: In-Reply-To:Content-Type:Content-Transfer-Encoding:MIME-Version:Content-ID: Content-Description; bh=ofIbKXcw5MeCVTtfInRG0pIYaeihr0khMk0pyTGTMfU=; b=BqvZa IXoR52ti3PDQRsLv/8DVKlMoYK8W2kIqC4oWNoIVhes/crqWN4WVwey4u9p/sZyGvNy7UWAPjSdaP dIUeldgm3AhsAJIBl+hczbrw24y+uA6Y9w6Wg93LlLztY3oKQeoP8inhJnVLXZnIed6DOuO5yuBta Hjmpo3sWnOwwMCRF3FvEklZVGjo7IuFeNZ1HENQIXsUcdJN7ZGgQmsXDltkC8Yskt34vgJFEp16EY VwqXoNzUzxBm5bayY3K5fhzeoft0Y9UUUVY7xnPggb9lteEeoDWhK5SmMH+mnY6yB2k5MJM7roJn4 BDoivF//+ZQbdcQgbMd76y7oUgHYg==; In-Reply-To: <9125826.uuVAOS58fx@silver> References: <9125826.uuVAOS58fx@silver> From: Christian Schoenebeck Date: Sun, 3 Oct 2021 20:15:36 +0200 Subject: [PATCH] virtio: increase VIRTQUEUE_MAX_SIZE to 32k To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Greg Kurz Message-Id: Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=91.194.90.13; envelope-from=0ddf07066a45508848f78317aa311c2a8120aa9d@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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @crudebyte.com) X-ZM-MESSAGEID: 1633285993485100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" VIRTQUEUE_MAX_SIZE reflects the absolute theoretical maximum queue size possible, which is actually the maximum queue size allowed by the virtio protocol. The appropriate value for VIRTQUEUE_MAX_SIZE is therefore 32768: https://docs.oasis-open.org/virtio/virtio/v1.1/cs01/virtio-v1.1-cs01.html#x= 1-240006 Signed-off-by: Christian Schoenebeck --- include/hw/virtio/virtio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 8bab9cfb75..1f18efa0bc 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -48,7 +48,7 @@ size_t virtio_feature_get_config_size(const VirtIOFeature= *features, =20 typedef struct VirtQueue VirtQueue; =20 -#define VIRTQUEUE_MAX_SIZE 1024 +#define VIRTQUEUE_MAX_SIZE 32768 =20 typedef struct VirtQueueElement { --=20 2.20.1