1. 12 May, 2017 17 commits
  2. 11 May, 2017 4 commits
  3. 03 May, 2017 4 commits
  4. 25 Apr, 2017 3 commits
  5. 21 Apr, 2017 4 commits
  6. 29 Mar, 2017 6 commits
  7. 28 Mar, 2017 2 commits
    • Thomas Huth's avatar
      powerpc: Add Special Purpose Register persistency test · ee30cf14
      Thomas Huth authored
      This test has two purposes: First, check whether the hypervisor can be
      destabilized by writing random values into the SPRs of the PowerPC CPU
      (this indeed revealed a bug last year, see CVE-2016-3044).
      Second, this test can be used to check whether the SPRs are synchronized
      properly between the KVM host CPU and QEMU, e.g. when migrating the VM
      from one QEMU instance to another.
      The test first fills the various SPRs with some non-zero value, then reads
      the values back into a first array. It then either sleeps a short period
      of time (for testing without migration, in the hope that we're rescheduled
      on another host CPU), or it waits for a key or NMI (with the '-w' option)
      so that it is possible to migrate the VM before continuing. The test then
      finally reads the values from the SPRs back into another array and then
      compares them with the initial values.
      Currently the test only supports the SPRs from the PowerISA v2.01
      (PowerPC 970) and PowerISA v2.07 specification (i.e. POWER8 CPUs),
      but other versions should be pretty easy to add later.
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
    • Thomas Huth's avatar
      Add the possibility to do simple migration tests · 37abdda9
      Thomas Huth authored
      To be able to do simple migration tests with kvm-unit-tests, too,
      add a helper script that does all the necessary work: Start two
      instances of QEMU (source and destination) with QMP sockets for
      sending commands to them, then trigger the migration from one
      instance to the other and finally signal the end of the migration
      to the guest by injecting an NMI.
      This helper script is now used automatically for powerpc tests
      if the test is put into the "migration" group in the unittests.cfg
      Reviewed-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>