public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Jones <drjones@redhat.com>
To: kvm@vger.kernel.org
Cc: rkrcmar@redhat.com, pbonzini@redhat.com, lvivier@redhat.com,
	thuth@redhat.com
Subject: [PATCH kvm-unit-tests v3 0/9] Extend and apply the errata framework
Date: Tue, 13 Jun 2017 13:54:42 +0200	[thread overview]
Message-ID: <20170613115451.6240-1-drjones@redhat.com> (raw)

We've had an errata framework merged in for a while, but it hasn't been
getting used (at least not upstream). This series extends it to allow
run script environment provided and host kernel version based generated
errata variables to be automatically provided to unit tests. It then
changes a couple arm unit tests to use the errata framework, now that
it's more useful.

The benefit of this over always using the 'nodefault' group is that
once a host has been patched the unit test will automatically start
running as a regression test - no need to manually run it, meaning no
concern that it will likely never actually be run...

v3:
 - clear INITRD to be sure it's not used unless derived from ENV [Laurent]
 - add some Laurent r-b's

v2:
 - apply a couple good bash suggestions from Laurent
 - apply some debatable bashisms for string manipulation, which
   swaps readability for reduced pipes... [me]

Andrew Jones (9):
  arch-run: introduce initrd_create
  arch-run: provide errata from run env
  x86/run: source config.mak
  arch-run: generate errata when no environ is provided
  mkstandalone: provide errata to tests
  errata: add ERRATA_FORCE
  README: add section on guarding unsafe tests
  AArch32: apply errata framework to unsafe pmccntr64 test
  arm/arm64: apply errata framework to unsafe cpu-on test

 README.md               | 34 +++++++++++++++++++++
 arm/pmu.c               | 26 +++++++++++-----
 arm/psci.c              |  7 ++++-
 arm/run                 |  5 ++--
 arm/unittests.cfg       |  2 +-
 configure               | 12 ++++++++
 errata.txt              |  7 +++++
 lib/errata.h            | 21 +++++++++++--
 powerpc/run             |  5 ++--
 run_tests.sh            |  2 ++
 scripts/arch-run.bash   | 80 +++++++++++++++++++++++++++++++++++++++++++++++++
 scripts/mkstandalone.sh |  6 ++++
 x86/run                 | 14 +++++++--
 13 files changed, 202 insertions(+), 19 deletions(-)
 create mode 100644 errata.txt

-- 
2.9.4

             reply	other threads:[~2017-06-13 11:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-13 11:54 Andrew Jones [this message]
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 1/9] arch-run: introduce initrd_create Andrew Jones
2017-06-13 12:09   ` Laurent Vivier
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 2/9] arch-run: provide errata from run env Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 3/9] x86/run: source config.mak Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 4/9] arch-run: generate errata when no environ is provided Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 5/9] mkstandalone: provide errata to tests Andrew Jones
2017-06-13 12:15   ` Laurent Vivier
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 6/9] errata: add ERRATA_FORCE Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 7/9] README: add section on guarding unsafe tests Andrew Jones
2017-06-13 12:15   ` Laurent Vivier
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 8/9] AArch32: apply errata framework to unsafe pmccntr64 test Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 9/9] arm/arm64: apply errata framework to unsafe cpu-on test Andrew Jones
2017-06-14 18:58 ` [PATCH kvm-unit-tests v3 0/9] Extend and apply the errata framework Radim Krčmář

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170613115451.6240-1-drjones@redhat.com \
    --to=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox