From nobody Tue Apr 30 09:40:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1502721339569937.1485141125278; Mon, 14 Aug 2017 07:35:39 -0700 (PDT) Received: from localhost ([::1]:51711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhGSw-0003L4-9n for importer@patchew.org; Mon, 14 Aug 2017 10:35:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhGRh-0002UN-Aa for qemu-devel@nongnu.org; Mon, 14 Aug 2017 10:34:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhGRe-0001LV-1Z for qemu-devel@nongnu.org; Mon, 14 Aug 2017 10:34:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49490) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dhGRd-0001L3-QZ for qemu-devel@nongnu.org; Mon, 14 Aug 2017 10:34:17 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BC6E15B30D for ; Mon, 14 Aug 2017 14:34:16 +0000 (UTC) Received: from redhat.com (ovpn-121-108.rdu2.redhat.com [10.10.121.108]) by smtp.corp.redhat.com (Postfix) with SMTP id CBD9C82A2C; Mon, 14 Aug 2017 14:34:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BC6E15B30D Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=mst@redhat.com Date: Mon, 14 Aug 2017 17:34:15 +0300 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <1502721197-32717-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Mutt-Fcc: =sent X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 14 Aug 2017 14:34:16 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] tests: switch tests to accel=kvm:tcg X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Paolo Bonzini , Thomas Huth , Cornelia Huck Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Speed up tests on host systems with kvm support. In particular, this fixes tests with --disable-tcg. Cc: Paolo Bonzini Cc: Thomas Huth Cc: Laurent Vivier Suggested-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- Tested on x86 only. tests/boot-serial-test.c | 2 +- tests/pnv-xscom-test.c | 4 ++-- tests/prom-env-test.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c index 11f48b0..c3b2e4e 100644 --- a/tests/boot-serial-test.c +++ b/tests/boot-serial-test.c @@ -78,7 +78,7 @@ static void test_machine(const void *data) fd =3D mkstemp(tmpname); g_assert(fd !=3D -1); =20 - args =3D g_strdup_printf("-M %s,accel=3Dtcg -chardev file,id=3Dserial0= ,path=3D%s" + args =3D g_strdup_printf("-M %s,accel=3Dkvm:tcg -chardev file,id=3Dser= ial0,path=3D%s" " -no-shutdown -serial chardev:serial0 %s", test->machine, tmpname, test->extra); =20 diff --git a/tests/pnv-xscom-test.c b/tests/pnv-xscom-test.c index 5adc3fd..7be396f 100644 --- a/tests/pnv-xscom-test.c +++ b/tests/pnv-xscom-test.c @@ -84,7 +84,7 @@ static void test_cfam_id(const void *data) char *args; const PnvChip *chip =3D data; =20 - args =3D g_strdup_printf("-M powernv,accel=3Dtcg -cpu %s", chip->cpu_m= odel); + args =3D g_strdup_printf("-M powernv,accel=3Dkvm:tcg -cpu %s", chip->c= pu_model); =20 qtest_start(args); test_xscom_cfam_id(chip); @@ -112,7 +112,7 @@ static void test_core(const void *data) char *args; const PnvChip *chip =3D data; =20 - args =3D g_strdup_printf("-M powernv,accel=3Dtcg -cpu %s", chip->cpu_m= odel); + args =3D g_strdup_printf("-M powernv,accel=3Dkvm:tcg -cpu %s", chip->c= pu_model); =20 qtest_start(args); test_xscom_core(chip); diff --git a/tests/prom-env-test.c b/tests/prom-env-test.c index eac207b..0a10f06 100644 --- a/tests/prom-env-test.c +++ b/tests/prom-env-test.c @@ -50,7 +50,7 @@ static void test_machine(const void *machine) /* The pseries firmware boots much faster without the default devices = */ extra_args =3D strcmp(machine, "pseries") =3D=3D 0 ? "-nodefaults" : "= "; =20 - args =3D g_strdup_printf("-M %s,accel=3Dtcg %s -prom-env 'use-nvramrc?= =3Dtrue' " + args =3D g_strdup_printf("-M %s,accel=3Dkvm:tcg %s -prom-env 'use-nvra= mrc?=3Dtrue' " "-prom-env 'nvramrc=3D%x %x l!' ", (const char *)machine, extra_args, MAGIC, ADDRE= SS); =20 --=20 MST