All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: kvm@vger.kernel.org, "Laurent Vivier" <lvivier@redhat.com>,
	"Drew Jones" <drjones@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>
Cc: kvm-ppc@vger.kernel.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Cédric Le Goater" <clg@kaod.org>,
	"David Matlack" <dmatlack@google.com>
Subject: [kvm-unit-tests PATCH v4 0/2] powerpc: Test SPR persistency during migration
Date: Wed, 22 Mar 2017 08:28:05 +0000	[thread overview]
Message-ID: <1490171287-30893-1-git-send-email-thuth@redhat.com> (raw)

Here's a KVM-unit-test to check the persistency of SPRs during migration.
First patch adds a helper script for doing migration tests in the
kvm-unit-test framework, and the second patch contains the SPR tester.

v4:
- Fix the error paths in run_migration() - use "exit 2" instead of "exit 1"
  to avoid trouble with the return code magic in the powerpc/run script
  and make sure to terminate the two QEMU instances in case of migration
  failure.

v3:
- Migration shell script code has been moved to a helper function in
  arch-run.bash, so that this now also works with the standalone tests.
- Introduced the helper function migration_cmd there, too, so that other
  architectures can use this, too.
- Use "$@" instead of $* when calling QEMU.

v2:
- Addressed review feedback from v1
- Now using cpu_relax() instead of asm volatile ("nop")

Thomas Huth (2):
  Add the possibility to do simple migration tests
  powerpc: Add Special Purpose Register persistency test

 powerpc/Makefile.common |   3 +-
 powerpc/cstart64.S      |   2 +
 powerpc/run             |   2 +-
 powerpc/sprs.c          | 304 ++++++++++++++++++++++++++++++++++++++++++++++++
 powerpc/unittests.cfg   |   5 +
 scripts/arch-run.bash   |  63 ++++++++++
 scripts/runtime.bash    |   3 +
 7 files changed, 380 insertions(+), 2 deletions(-)
 create mode 100644 powerpc/sprs.c

-- 
1.8.3.1


WARNING: multiple messages have this Message-ID (diff)
From: Thomas Huth <thuth@redhat.com>
To: kvm@vger.kernel.org, "Laurent Vivier" <lvivier@redhat.com>,
	"Drew Jones" <drjones@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>
Cc: kvm-ppc@vger.kernel.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Cédric Le Goater" <clg@kaod.org>,
	"David Matlack" <dmatlack@google.com>
Subject: [kvm-unit-tests PATCH v4 0/2] powerpc: Test SPR persistency during migration
Date: Wed, 22 Mar 2017 09:28:05 +0100	[thread overview]
Message-ID: <1490171287-30893-1-git-send-email-thuth@redhat.com> (raw)

Here's a KVM-unit-test to check the persistency of SPRs during migration.
First patch adds a helper script for doing migration tests in the
kvm-unit-test framework, and the second patch contains the SPR tester.

v4:
- Fix the error paths in run_migration() - use "exit 2" instead of "exit 1"
  to avoid trouble with the return code magic in the powerpc/run script
  and make sure to terminate the two QEMU instances in case of migration
  failure.

v3:
- Migration shell script code has been moved to a helper function in
  arch-run.bash, so that this now also works with the standalone tests.
- Introduced the helper function migration_cmd there, too, so that other
  architectures can use this, too.
- Use "$@" instead of $* when calling QEMU.

v2:
- Addressed review feedback from v1
- Now using cpu_relax() instead of asm volatile ("nop")

Thomas Huth (2):
  Add the possibility to do simple migration tests
  powerpc: Add Special Purpose Register persistency test

 powerpc/Makefile.common |   3 +-
 powerpc/cstart64.S      |   2 +
 powerpc/run             |   2 +-
 powerpc/sprs.c          | 304 ++++++++++++++++++++++++++++++++++++++++++++++++
 powerpc/unittests.cfg   |   5 +
 scripts/arch-run.bash   |  63 ++++++++++
 scripts/runtime.bash    |   3 +
 7 files changed, 380 insertions(+), 2 deletions(-)
 create mode 100644 powerpc/sprs.c

-- 
1.8.3.1

             reply	other threads:[~2017-03-22  8:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-22  8:28 Thomas Huth [this message]
2017-03-22  8:28 ` [kvm-unit-tests PATCH v4 0/2] powerpc: Test SPR persistency during migration Thomas Huth
2017-03-22  8:28 ` [kvm-unit-tests PATCH v4 1/2] Add the possibility to do simple migration tests Thomas Huth
2017-03-22  8:28   ` Thomas Huth
2017-03-22  8:41   ` Andrew Jones
2017-03-22  8:41     ` Andrew Jones
2017-03-22  8:28 ` [kvm-unit-tests PATCH v4 2/2] powerpc: Add Special Purpose Register persistency test Thomas Huth
2017-03-22  8:28   ` Thomas Huth
2017-03-22 15:20 ` [kvm-unit-tests PATCH v4 0/2] powerpc: Test SPR persistency during migration Laurent Vivier
2017-03-22 15:20   ` Laurent Vivier
2017-03-22 17:27   ` Thomas Huth
2017-03-22 17:27     ` Thomas Huth
2017-03-23 22:41     ` Paul Mackerras
2017-03-23 22:41       ` Paul Mackerras
2017-03-24  7:43       ` Thomas Huth
2017-03-24  7:43         ` Thomas Huth
2017-03-22 17:39   ` Cédric Le Goater
2017-03-22 17:39     ` Cédric Le Goater

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=1490171287-30893-1-git-send-email-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=clg@kaod.org \
    --cc=dmatlack@google.com \
    --cc=drjones@redhat.com \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.