Skip to content

x86: add interrupt latency test

[email protected] xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15common: account for installing *-sym filesbuild/gen.mk+1 -10 replies
2/15common: add per-test Xen bootargs filebuild/gen.mk build/mkinfo.py+6 -40 replies
3/15argo: export hypervisor command line for testtests/argo/bootargs.in+1 -00 replies
4/15common: harden type checks in ACCESS_ONCE()include/xtf/lib.h+5 -10 replies
5/15common: add simple atou()common/libc/string.c include/xtf/libc.h+26 -00 replies
6/15common: add missing evtchn hypercallsinclude/xen/event_channel.h include/xen/hvm/hvm_op.h include/xtf/hypercall.h+55 -00 replies
7/15common: enable XEN_DOMCTL_debug_op domctlinclude/xen/domctl.h include/xtf/hypercall.h+69 -00 replies
8/15common: add primitives for measurementsbuild/files.mk common/statistics.c include/xtf/statistics.h+388 -00 replies
9/15x86: introduce cpu_relax()arch/x86/include/arch/processor.h+3 -00 replies
10/15x86: introduce simple time managementarch/x86/include/arch/time.h arch/x86/tsc.c build/files.mk +3 more+122 -00 replies
11/15x86: export per-vCPU IDTR initializationarch/x86/hvm/traps.c arch/x86/include/arch/idt.h+13 -10 replies
12/15x86: isolate FEP in setup_fep()arch/x86/setup.c+41 -390 replies
13/15x86: add primitives for interrupt enable/disablearch/x86/include/arch/system.h+7 -00 replies
14/15x86: apic: add few more registersarch/x86/include/arch/apic.h+29 -00 replies
15/15x86: add interrupt latency test (hvm64)tests/interrupt-latency/Makefile tests/interrupt-latency/ap-asm.S tests/interrupt-latency/ap-main.c +4 more+945 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [XTF PATCH v1 00/15] x86: add interrupt latency test

The series introduces updates to XTF to enable a test for measuring IPI/posted interrupts latencies required by [1].

The test has lots of dependencies, so series grew big.

The series is available via gitlab branch [2].

Complete CI run is available via [3].

Patch 1 aligns Arm XTF with x86 XTF; does not affect x86 XTF runs.

Patch 2 enables per-test Xen configuration.

Patch 3 adds hypervisor cmdline into argo test artifacts.

Patch 4 ports ACCESS_ONCE() from Xen.

Patch 5 adds simple atou() for test command line parsing.

Patch 6 adds missing evtchn management hypercalls.

Patch 7 adds XEN_DOMCTL_debug_op hypercall.

Patch 8 adds minimal measuments sampling framework.

Patch 9 adds cpu_relax() for x86.

Patch 10 adds TSC-based time management.

Patch 11 and 12 are small updates for setting up test environment.

Patch 13 adds primitives for enabling/disabling interrupts.

Patch 14 adds few more APIC registers for tests.

Patch 15 adds the interrupt latency test.

[1] Xen AVIC + CI infra branch: https://gitlab.com/xen-project/people/dmukhin/xen/-/tree/svm-avic-v3?ref_type=heads
[2] XTF branch: https://gitlab.com/xen-project/people/dmukhin/xtf/-/tree/x86_64-ipi-latency?ref_type=heads
[3] CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/3028917985

Denis Mukhin (15):
common: account for installing *-sym files
common: add per-test Xen bootargs file
argo: export hypervisor command line for test
common: harden type checks in ACCESS_ONCE()
common: add simple atou()
common: add missing evtchn hypercalls
common: enable XEN_DOMCTL_debug_op domctl
common: add primitives for measurements
x86: introduce cpu_relax()
x86: introduce simple time management
x86: export per-vCPU IDTR initialization
x86: isolate FEP in setup_fep()
x86: add primitives for interrupt enable/disable
x86: apic: add few more registers
x86: add interrupt latency test (hvm64)

 arch/x86/hvm/traps.c                 |   7 +-
 arch/x86/include/arch/apic.h         |  29 ++
 arch/x86/include/arch/idt.h          |   7 +
 arch/x86/include/arch/processor.h    |   3 +
 arch/x86/include/arch/system.h       |   7 +
 arch/x86/include/arch/time.h         |  48 ++
 arch/x86/setup.c                     |  80 +--
 arch/x86/tsc.c                       |  32 ++
 build/files.mk                       |   3 +
 build/gen.mk                         |   4 +-
 build/mkinfo.py                      |   8 +-
 common/libc/string.c                 |  24 +
 common/statistics.c                  | 364 ++++++++++++++
 common/time.c                        |   6 +
 include/xen/arch-x86/cpuid.h         |  26 +
 include/xen/domctl.h                 |  63 +++
 include/xen/event_channel.h          |  13 +
 include/xen/hvm/hvm_op.h             |  17 +
 include/xtf/hypercall.h              |  31 ++
 include/xtf/lib.h                    |   6 +-
 include/xtf/libc.h                   |   2 +
 include/xtf/statistics.h             |  23 +
 include/xtf/time.h                   |   8 +
 tests/argo/bootargs.in               |   1 +
 tests/interrupt-latency/Makefile     |  11 +
 tests/interrupt-latency/ap-asm.S     |  50 ++
 tests/interrupt-latency/ap-main.c    | 164 +++++++
 tests/interrupt-latency/ap.h         |  12 +
 tests/interrupt-latency/bootargs.in  |   1 +
 tests/interrupt-latency/extra.cfg.in |   1 +
 tests/interrupt-latency/main.c       | 706 +++++++++++++++++++++++++++
 31 files changed, 1711 insertions(+), 46 deletions(-)
 create mode 100644 arch/x86/include/arch/system.h
 create mode 100644 arch/x86/include/arch/time.h
 create mode 100644 arch/x86/tsc.c
 create mode 100644 common/statistics.c
 create mode 100644 common/time.c
 create mode 100644 include/xen/domctl.h
 create mode 100644 include/xtf/statistics.h
 create mode 100644 include/xtf/time.h
 create mode 100644 tests/argo/bootargs.in
 create mode 100644 tests/interrupt-latency/Makefile
 create mode 100644 tests/interrupt-latency/ap-asm.S
 create mode 100644 tests/interrupt-latency/ap-main.c
 create mode 100644 tests/interrupt-latency/ap.h
 create mode 100644 tests/interrupt-latency/bootargs.in
 create mode 100644 tests/interrupt-latency/extra.cfg.in
 create mode 100644 tests/interrupt-latency/main.c
Signature · 1 line
2.55.0