[XTF PATCH v1 0/6] x86: add NS16550-compatible UART emulator test

dmukhin@ford.com posted 6 patches 1 week, 5 days ago
.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
[XTF PATCH v1 0/6] x86: add NS16550-compatible UART emulator test
Posted by dmukhin@ford.com 1 week, 5 days ago
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