tests/postcopy: Use KVM on ppc64 only if it is KVM-HV
authorThomas Huth <thuth@redhat.com>
Wed, 16 Nov 2016 08:39:31 +0000 (09:39 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Nov 2016 01:00:48 +0000 (12:00 +1100)
commit171da9d5dbd2fe1ee2f923dff736d89be96c9672
tree4d7b821858c48a9ff9efbf6fa89f9e6ad1d821f3
parent00227fefd2059464cd2f59aed29944874c630e2f
tests/postcopy: Use KVM on ppc64 only if it is KVM-HV

The ppc64 postcopy test does not work with KVM-PR, and it is also
causing annoying warning messages when run on a x86 host. So let's
use KVM here only if we know that we're running with KVM-HV (which
automatically also means that we're running on a ppc64 host), and
fall back to TCG otherwise.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tests/postcopy-test.c