From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDSWB-0002nL-RC for qemu-devel@nongnu.org; Fri, 19 Oct 2018 07:00:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDSW5-00059O-MO for qemu-devel@nongnu.org; Fri, 19 Oct 2018 07:00:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33132) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gDSW5-0004xX-8J for qemu-devel@nongnu.org; Fri, 19 Oct 2018 07:00:29 -0400 From: Thomas Huth Date: Fri, 19 Oct 2018 13:00:06 +0200 Message-Id: <1539946806-695-1-git-send-email-thuth@redhat.com> Subject: [Qemu-devel] [PATCH] tests/migration-test: Disable s390x test when running with TCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Juan Quintela , "Dr. David Alan Gilbert" Cc: Paolo Bonzini , Laurent Vivier , "Emilio G. Cota" , Peter Maydell , Wei Huang , david@redhat.com, Cornelia Huck , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= The migration test for s390x sometimes hangs when running with TCG, similar to the problems that we have already observed with TCG for the ppc64 guests. Thus disable the s390x test when we are not running with KVM for now until the problem with TCG has been resolved. Signed-off-by: Thomas Huth --- tests/migration-test.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/migration-test.c b/tests/migration-test.c index b792025..06ca506 100644 --- a/tests/migration-test.c +++ b/tests/migration-test.c @@ -803,6 +803,22 @@ int main(int argc, char **argv) return 0; } + /* + * Similar to ppc64, s390x seems to be touchy with TCG, so disable it + * there until the problems are resolved + */ + if (g_str_equal(qtest_get_arch(), "s390x")) { +#if defined(HOST_S390X) + if (access("/dev/kvm", R_OK | W_OK)) { + g_test_message("Skipping test: kvm not available"); + return 0; + } +#else + g_test_message("Skipping test: Need s390x host to work properly"); + return 0; +#endif + } + tmpfs = mkdtemp(template); if (!tmpfs) { g_test_message("mkdtemp on path (%s): %s\n", template, strerror(errno)); -- 1.8.3.1