Skip to content

Introduce an errata framework

Andrew Jones kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15devicetree: improve dt_get_bootargs interfacelib/arm/setup.c lib/devicetree.c lib/devicetree.h +1 more+7 -70 replies
2/15devicetree: introduce dt_get_initrdlib/devicetree.c lib/devicetree.h+44 -00 replies
3/15arm/arm64: better document setuplib/arm/setup.c+25 -50 replies
4/15powerpc: better document setuplib/powerpc/setup.c+25 -50 replies
5/15arm/arm64: import initrdlib/arm/setup.c+16 -30 replies
6/15powerpc: import initrdlib/powerpc/setup.c+16 -30 replies
7/15x86_64: mbi-cmdline is a 4 byte addrx86/cstart64.S+1 -10 replies
8/15x86: import initrdlib/x86/setup.c x86/Makefile.common x86/cstart.S +1 more+38 -20 replies
9/15lib/argv: fix coding stylelib/argv.c+26 -290 replies
10/15lib/argv: introduce setup_env and getenvlib/argv.c lib/libcflat.h lib/string.c+105 -10 replies
11/15arm/arm64: enable environarm/cstart.S arm/cstart64.S arm/run +1 more+11 -00 replies
12/15powerpc: enable environlib/powerpc/setup.c powerpc/cstart64.S powerpc/run+12 -20 replies
13/15x86: enable environlib/x86/setup.c x86/cstart.S x86/cstart64.S +1 more+23 -10 replies
14/15README: reserve some environment variablesREADME.md+24 -00 replies
15/15Introduce lib/errata.hlib/errata.h+24 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH kvm-unit-tests 00/15] Introduce an errata framework

When using kvm-unit-tests to verify distributions (which use older, stable KVM and QEMU), it's possible to get FAILs for tests of features not implemented, or FAILs for fixes that are targeted for later releases. This framework empowers unit test developers to more generously apply report_skip and report_xfail by giving the user run-time modifiable booleans to control the flow of tests. For example, we can now do something like

  if (!ERRATA(PPC64_TM_01))
    report_skip("ERRATA_PPC64_TM_01 not set 'y', skipping...");
  else
    report(...);

ERRATA_PPC64_TM_01 is simply a unit test environment variable which can have its value changed easily. E.g.

  $ echo ERRATA_PPC64_TM_01=y > ppc64.env
  $ ENV=ppc64.env ./run_tests.sh

will run all ppc64 unit tests, and any test that checks ERRATA(PPC64_TM_01) will get a return value of true. Another example is

  report_xfail("APIC test", !ERRATA_RELAXED(X86_APIC_01), ...);

allowing an APIC test to report FAIL when ERRATA_X86_APIC_01 is 'y', or non-exist, and the test fails, or XFAIL when it fails with ERRATA_X86_APIC_01=n.

Getting report_skip/xfail patches upstream, and then using an environ with the appropriate errata set downstream, should help avoid automated test suites from flagging too many false alarms, and also avoid the need to carry too many downstream patches.

Thanks,
drew

Andrew Jones (15):
devicetree: improve dt_get_bootargs interface
devicetree: introduce dt_get_initrd
arm/arm64: better document setup
powerpc: better document setup
arm/arm64: import initrd
powerpc: import initrd
x86_64: mbi-cmdline is a 4 byte addr
x86: import initrd
lib/argv: fix coding style
lib/argv: introduce setup_env and getenv
arm/arm64: enable environ
powerpc: enable environ
x86: enable environ
README: reserve some environment variables
Introduce lib/errata.h

 arm/run             |   1 +
 powerpc/run         |   1 +
 x86/run             |   4 +-
 x86/Makefile.common |   1 +
 lib/devicetree.h    |  15 +++++-
 lib/errata.h        |  24 +++++++++
 lib/libcflat.h      |   1 +
 lib/argv.c          | 143 +++++++++++++++++++++++++++++++++++++++++-----------
 lib/arm/setup.c     |  55 +++++++++++++++++---
 lib/devicetree.c    |  39 ++++++++++++--
 lib/powerpc/setup.c |  55 +++++++++++++++++---
 lib/string.c        |  15 ++++++
 lib/x86/setup.c     |  47 +++++++++++++++++
 arm/cstart.S        |   1 +
 arm/cstart64.S      |   1 +
 powerpc/cstart64.S  |   5 +-
 x86/cstart.S        |   4 ++
 x86/cstart64.S      |   8 ++-
 README.md           |  24 +++++++++
 19 files changed, 391 insertions(+), 53 deletions(-)
 create mode 100644 lib/errata.h
 create mode 100644 lib/x86/setup.c
Signature · 1 line
2.9.3