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

[PATCH v8 0/7] xen/console: some cleanups and configurable conring size


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: dmukhin@xxxxxxxx
  • Date: Mon, 27 Jul 2026 23:50:42 -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=GPBocsKxtAOpdEroq7ji4xJW8PUHMW0FIoJU5tPH13Q=; b=t6W08ocfgGXzs+Qzlo6N40XjSHrLoCZW8KYq3onl+rr+Zg3DMBXwIeUV5CBeORzcg+QqKr87d0Q6iRq55OnUgq6JEYi5rnfPy6uH02cwzys8ttY8o44oaBjgXbHp1/gwp63FVoF1pNfzToZy5TG9hQHQ6jDbYxTcBRWZv6XECag0+0TnP0DUTAygVA/iJ1wEd/GDqSK+CU1DgAvCNTJ6M2eJ+c/VqxN8ZzaAXcCmFOIWY2K161eV8Cp9HZ8fA/1t9qAYV0AqgR3cGPFtPJVEPHXwe3yRL8dXzfkOqAsf4FtFcUM/il3HWGxsoWZfXYcVkw47lOxKKuwl7LvHkismHA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=R2vsnjebMu+yTuKiFx+49TLJkCSE0t7OVk15tHnkM2m+fH9VvUoJymBHKcF9kBaPR3k9o59QS8s3k29R/srDUw5gdsf4BqgSHLG3DI2XvSuqd/jWYpUzSay9uAcjE7acPsAYgLibmVGlQ9qRHQWiaZ1APmfZu9EE3+DZyexZ8Q9kAv0HMoTpObnnr6dd6AR47R4ndj7NLPrKBcv1cLHM2eIuwzY+4oj86sF464rHjBO/YsIJWte0xSSdqNR0TVjQnJNTISM7alHYxZ2/hRTr0nZkaSj1sdPMxk09EUrerzroWdgM06sz07Ol/+LUMThJRgLMRxbwQmMcEBZD8xrjkA==
  • 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: Tue, 28 Jul 2026 06:51:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Pser-m365-app: SER-APP

Series introduces some cleanups in console conring and serial
driver buffer management code ending up with adding compile-time
configuration knob for conring size.

Patch 1-2 correct the data types used in conring management code.

Patch 3 updates the conring buffer allocation code.

Patch 4 updates the serial driver buffer allocation code.

Patch 5 optimizes code in conring_puts().

Patch 6 hardens the checks in the serial driver buffer management code.

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

[1] v7: 
https://lore.kernel.org/xen-devel/20260713181619.672176-1-dmukhin@xxxxxxxx/
[2] CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2710713367

Denis Mukhin (7):
  xen/console: do not use XENCONS_RING_IDX in console_init_ring()
  xen/console: use 'unsigned int' in contring_{flush,puts}()
  xen/console: switch conring runtime allocation to xvmalloc
  xen/serial: switch txbuf runtime allocation to xvmalloc
  xen/console: use memcpy() in conring_puts()
  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        | 61 +++++++++++++++++++++----------
 xen/drivers/char/serial.c         |  6 ++-
 4 files changed, 75 insertions(+), 23 deletions(-)

-- 
2.54.0




 


Rackspace

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