[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v7 0/7] xen/console: configurable conring size


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: dmukhin@xxxxxxxx
  • Date: Mon, 13 Jul 2026 11:16:12 -0700
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 205.220.161.53) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=ford.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ford.com; dkim=pass (signature was verified) header.d=saarlouis.ford.com; dkim=pass (signature was verified) header.d=ford.com; arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=48tokVTb31SyNDg5RcENiJ2ALBNpyk+hlwfTtzg83s4=; b=hTAaZweRq9LYIYoPJNjb5Uf/D13M/UblTepHhafvnzpC2I53Qp1H2Fkl+Jx9p4YO7iK9GNjGfMoSfMMtQEx6YUGhUE7qR1Cga53lWyNaM1CzAdP8QDf5uOvaOVksoHGKnR1XyqqhV5euOkS8vw+ei9KJj+lcdVW/hy+Tf3wsjRm525B+wTnnQQc23REuHcWORO7CfIQxMIJ04Dfdy3m1qEiyseCSFahCmZNQ39EbApKpLveUhlRNkKMEJT0U8yF4QawPu4Kow6G0gqKL1HfGg0uf9oe2noLRiT3OE/0dXnThUnrMU1BKuPUfGxNW6i8pSpCITmXOcnnnOf1IyJvcHg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G9UxMtdMIXwJ7OsSiQj9MaEeZ+XglvvfHYD61s2YHdvD+h/plsRFQojb93LbkXXowM+hCormoWXgobn+ZAdjj1UIGOe8HAefeEHnA3YKJ6xSy1BThXXvKpUP2l/mBmkngjGg/2uNLafJaFhdPunp/WB35DlVM+w3YEr37RprwtWwTz/QW4d0isFrpzF2WJJKFTWBFqil0mn4znMAIwxyN6SZgsZaHp3y+7I5wE3d5wDAQinognYurYcH12dhbkvsVJeptC0MQNeNulSnA0+gOhdrED2Id/muhhee2EnjOH3utugpVlioygLiigxa4ilv60TE0odTHj+BmYr88bVyZQ==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=ppford header.d=ford.com header.i="@ford.com" header.h="Cc:Content-Transfer-Encoding:Content-Type:Date:From:Message-ID:MIME-Version:Subject:To"; dkim=pass header.s=selector2-azureford-onmicrosoft-com header.d=azureford.onmicrosoft.com header.i="@azureford.onmicrosoft.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"; dkim=pass header.s=ppserprodsaar header.d=saarlouis.ford.com header.i="@saarlouis.ford.com" header.h="Cc:Content-Transfer-Encoding:Date:From:Message-ID:MIME-Version:Subject:To"; dkim=pass header.s=ppfserpocford header.d=ford.com header.i="@ford.com" header.h="Cc:Content-Transfer-Encoding:Date:From:Message-ID:MIME-Version:Subject:To"
  • Cc: andrew.cooper3@xxxxxxxxxx, anthony.perard@xxxxxxxxxx, jbeulich@xxxxxxxx, julien@xxxxxxx, michal.orzel@xxxxxxx, roger.pau@xxxxxxxxxx, sstabellini@xxxxxxxxxx, dmukhin@xxxxxxxx
  • Delivery-date: Mon, 13 Jul 2026 18:16:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Pser-m365-app: SER-APP

Series introduces compile-time configurable conring size along
with few cleanups in conring management.

Patch 1 updates conring{,_size} annotations to __ro_after_init as per [1].

Patch 2 optimizes switch from early conring to permanent conring.

Patch 3 optimizes code in conring_puts().

Patch 4 updates the conring buffer allocation code.

Patch 5,6 updates for the command line options for the serial driver.

Patch 7 introduces CONRING_CONRING_SHIFT to select compile-time
conring buffer size.

[1] 
https://lore.kernel.org/xen-devel/1a5ed8ad-0cc7-4e05-9b9c-cd6930d9b9ea@xxxxxxxxxx
[2] Link to v6: 
https://lore.kernel.org/xen-devel/20260509005714.892018-1-dmukhin@xxxxxxxx/
[3] Link to CI: 
https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2673235063 

Denis Mukhin (7):
  xen/console: promote conring{,_size} to __ro_after_init
  xen/console: use memcpy() in console_init_ring()
  xen/console: use memcpy() in conring_puts()
  xen/console: switch conring runtime allocation to xvmalloc
  xen/serial: drop stale SERIAL_NEVER_DROP_CHARS
  xen/serial: harden serial_tx_buffer checks
  xen/console: make console buffer size configurable

 docs/misc/xen-command-line.pandoc | 10 ++++-
 xen/drivers/char/Kconfig          | 21 +++++++++
 xen/drivers/char/console.c        | 71 ++++++++++++++++++++++---------
 xen/drivers/char/serial.c         | 24 +++++++++--
 4 files changed, 99 insertions(+), 27 deletions(-)

-- 
2.54.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.