Received: from eggs.gnu.org ([2001:4830:134:3::10]:45661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhHai-0005NP-BV for qemu-devel@nongnu.org; Mon, 14 Aug 2017 11:47:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhHaK-0007lk-Dy for qemu-devel@nongnu.org; Mon, 14 Aug 2017 11:47:44 -0400 References: <1502721197-32717-1-git-send-email-mst@redhat.com> <20170814173335.58f0e84f.cohuck@redhat.com> From: Thomas Huth Message-ID: Date: Mon, 14 Aug 2017 17:47:12 +0200 MIME-Version: 1.0 In-Reply-To: <20170814173335.58f0e84f.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] tests: switch tests to accel=kvm:tcg List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck , "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, Paolo Bonzini , Laurent Vivier , Greg Kurz , =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , "qemu-ppc@nongnu.org" On 14.08.2017 17:33, Cornelia Huck wrote: > On Mon, 14 Aug 2017 17:34:15 +0300 > "Michael S. Tsirkin" wrote: >=20 >> Speed up tests on host systems with kvm support. >> In particular, this fixes tests with --disable-tcg. [...] >> 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_model); >> + args =3D g_strdup_printf("-M powernv,accel=3Dkvm:tcg -cpu %s", ch= ip->cpu_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_model); >> + args =3D g_strdup_printf("-M powernv,accel=3Dkvm:tcg -cpu %s", ch= ip->cpu_model); >> =20 >> qtest_start(args); >> test_xscom_core(chip); >=20 > These seem to test a specified cpu model explicitly, so I'm not sure > how well this will work with kvm. AFAIK the powernv machine does not work with KVM yet (C=C3=A9dric, can yo= u confirm?), so you better drop the changes to this file. >> 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 dev= ices */ >> extra_args =3D strcmp(machine, "pseries") =3D=3D 0 ? "-nodefaults= " : ""; >> =20 >> - args =3D g_strdup_printf("-M %s,accel=3Dtcg %s -prom-env 'use-nvr= amrc?=3Dtrue' " >> + args =3D g_strdup_printf("-M %s,accel=3Dkvm:tcg %s -prom-env 'use= -nvramrc?=3Dtrue' " >> "-prom-env 'nvramrc=3D%x %x l!' ", >> (const char *)machine, extra_args, MAGIC, = ADDRESS); >=20 > The header explicitly states that this is supposed to test tcg mode. This change should be OK here. But it is currently not necessary yet: The test only runs on SPARC and PPC machines, and both do not support the --disable-tcg switch yet. Thomas