[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XTF PATCH v1 0/6] x86: add NS16550-compatible UART emulator test
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: dmukhin@xxxxxxxx
- Date: Wed, 11 Nov 2026 11:51:03 -0800
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 148.163.138.245) 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=X5vVY5mmGle2Pjt7eq8o8sD2PEuDXzQzmlbhwuxG4as=; b=NROD6v6QmCPSnZmQ7X+jqL72lrymeKYTf4f+lOIKOAnfU0WSLYF+PMy8REPdsfNJ2YqfDP7sQ76aUkDSmQpRMwrKq/xauUOXOUdg6i2Z7WFfgS0Eux9ZvYBqjLWgE0aSctLyDn3vVp6CC8/lV6KnEX75Obei/brXTwlWXV70QE7PSlpgKXmXPNN8MPlWwB6IJcCfBVNR/larBB7e/7+LhO/dTBHaqaFADKOG42mnAL1xSh4NNPWI8a/0P0IkuEOl5BDSQPRXyyvljo89OrZxyDZX2eU34fZF6EAEFa/B3MsiRhGHvmNw/3089YAAMXYJ/l71NV4KE7ZM1St8PNMeGw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NWc8rEWN52sOkFl+yZ/ckR7ojyNhW5uMfq+UQf141ddGLkMdNHLiCQUKdn92k+YXzgxGEOFMu2znrkXNAvXcC1eMBd5FdjX6S9bIGKxyfaltpEImCJP0fF4XeOLYvoWQD+/GSxbQOHJ3KPPI9NXzUbJVVGthMZYihTc9OdLZv4HnyAZMKWGIT7o5HFWbfo3GSMx4l8WoOdAg2LoqxW+/hSDsluPR1ZDn5mJZs2fdlTvUX/IRCe/QzBFxunJ119CYvW3songncr2Y6l7sXeAjxD7TVOYp89uD7eGs3+U40iXQmKriv1Oe+zAvUmjRf8pl9X5l8gzK2j1YvT1QWuyrCA==
- 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@xxxxxxxxxxxxxx, sstabellini@xxxxxxxxxx, dmukhin@xxxxxxx, Denis Mukhin <dmukhin@xxxxxxxx>
- Delivery-date: Wed, 11 Nov 2026 19:51:26 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Pser-m365-app: SER-APP
Series introduces a test for NS16550-compatible UART.
Patches 1-3 are preliminary cleanups and fixups.
Patch 4 allows emulator to be the only registered console in
case console hypercall is not available.
Patch 5 adds minimally functional NS16550-compatible UART
driver.
Patch 6 adds a new test.
CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/3055921295
Link to XTF branch:
https://gitlab.com/xen-project/people/dmukhin/xtf/-/tree/emul-16x50?ref_type=heads
Link to emualator:
https://gitlab.com/xen-project/people/dmukhin/xen/-/commits/vuart-ns8250-v8
Denis Mukhin (6):
.gitignore: exclude tags
x86: introduce cpu_relax()
x86: isolate FEP in setup_fep()
x86: skip registering unavailable Xen console
common: add simplistic NS16550-compatible UART driver
x86: add NS16550-compatible emulator test
.gitignore | 1 +
arch/x86/include/arch/processor.h | 3 +
arch/x86/setup.c | 87 ++--
build/files.mk | 1 +
common/console.c | 3 +-
common/ns16550.c | 153 +++++++
include/xtf/console.h | 15 +-
include/xtf/hypercall.h | 4 +-
include/xtf/ns16550.h | 117 ++++++
tests/emul-ns16x50/.gitignore | 3 +
tests/emul-ns16x50/Makefile | 9 +
tests/emul-ns16x50/main.c | 644 ++++++++++++++++++++++++++++++
tests/emul-ns16x50/patterns.c | 65 +++
13 files changed, 1056 insertions(+), 49 deletions(-)
create mode 100644 common/ns16550.c
create mode 100644 include/xtf/ns16550.h
create mode 100644 tests/emul-ns16x50/.gitignore
create mode 100644 tests/emul-ns16x50/Makefile
create mode 100644 tests/emul-ns16x50/main.c
create mode 100644 tests/emul-ns16x50/patterns.c
--
2.56.0
|