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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 A0645EA7954 for ; Thu, 5 Feb 2026 01:36:34 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1221350.1529608 (Exim 4.92) (envelope-from ) id 1vnoI3-0001ij-7B; Thu, 05 Feb 2026 01:36:15 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1221350.1529608; Thu, 05 Feb 2026 01:36:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vnoI3-0001ib-2s; Thu, 05 Feb 2026 01:36:15 +0000 Received: by outflank-mailman (input) for mailman id 1221350; Thu, 05 Feb 2026 01:36:14 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vnoI2-0001iV-EZ for xen-devel@lists.xenproject.org; Thu, 05 Feb 2026 01:36:14 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1vnoI2-003wQ6-0f; Thu, 05 Feb 2026 01:36:13 +0000 Received: from [140.209.201.102] (helo=localhost) by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vnoI1-00HVWq-1z; Thu, 05 Feb 2026 01:36:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:Cc:To:From; bh=/gKg0E53LxUxIKjZV4BVNDkp/q7tuKx1vt5Xw35g7Hg=; b=EcMmvu bT+5dmIcIKh8n31KBOCNZhujQFSOoKkIVqTksFZLOXBtqM7lMar+v2uY61OCkAfPaDoJ80WPzgcJk Oa9qxd48RWqpdoB/t/gxdcCLkb7HAWRLK/T8IuT3wshOS3bNtDkaO3VyklnJpZOP5Oo6Y8YPZ0Xtt Cndusu7aXzQ=; From: dmukhin@xen.org To: xen-devel@lists.xenproject.org Cc: andrew.cooper3@citrix.com, anthony.perard@vates.tech, jbeulich@suse.com, julien@xen.org, michal.orzel@amd.com, roger.pau@citrix.com, sstabellini@kernel.org, dmukhin@ford.com Subject: [PATCH v5 0/6] xen/console: configurable conring size Date: Wed, 4 Feb 2026 17:36:00 -0800 Message-ID: <20260205013606.3384798-1-dmukhin@ford.com> X-Mailer: git-send-email 2.52.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series originates from [1] which addresses feedback [2]. Sending this as v5 since [1] was posted as v4... Briefly, here is what the series covers: Patch 1 groups conring code together to better maintainability. There were conring bits all over the place in console.c. Patch 2 introduces CONRING_CONRING_SHIFT to select compile-time conring buffer size. Patch 3 updates conring{,_size} annotations to __ro_after_init as per [2]. Patch 4 optimizes switch from early conring to permanent conring. Patches 5-6 update the conring buffer allocation code and add some verbose logging around buffer size selection. [1] Link to v4: https://lore.kernel.org/xen-devel/20250311070912.730334-1-dmkhn@proton.me/ [2] https://lore.kernel.org/xen-devel/1a5ed8ad-0cc7-4e05-9b9c-cd6930d9b9ea@citrix.com [3] Link to CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2306728453 Denis Mukhin (6): xen/console: group conring code together xen/console: make console buffer size configurable xen/console: promote conring{,_size} to __ro_after_init xen/console: use memcpy() in console_init_ring() xen/console: update conring memory allocation xen/console: add conring buffer size alignment setting docs/misc/xen-command-line.pandoc | 5 +- xen/drivers/char/Kconfig | 31 +++++ xen/drivers/char/console.c | 190 +++++++++++++++++------------- 3 files changed, 143 insertions(+), 83 deletions(-) -- 2.52.0