From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmtmK-0000iK-Q3 for qemu-devel@nongnu.org; Tue, 29 Aug 2017 23:34:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmtmE-0002ky-Ge for qemu-devel@nongnu.org; Tue, 29 Aug 2017 23:34:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33958) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dmtmE-0002kL-9j for qemu-devel@nongnu.org; Tue, 29 Aug 2017 23:34:50 -0400 Date: Wed, 30 Aug 2017 11:34:45 +0800 From: Fam Zheng Message-ID: <20170830033445.GE4208@lemon.lan> References: <20170828174707.20786-1-famz@redhat.com> <20170828174707.20786-4-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 03/10] tests: Add vm test lib List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: qemu-devel@nongnu.org, berrange@redhat.com, Alex =?iso-8859-1?Q?Benn=E9e?= , pbonzini@redhat.com, stefanha@redhat.com, Cleber Rosa , Peter Maydell , eblake@redhat.com, Kamil Rytarowski On Tue, 08/29 14:34, Philippe Mathieu-Daud=E9 wrote: > > + self._args =3D [ \ > > + "-nodefaults", "-m", "2G", > > + "-cpu", "host", > > + "-netdev", "user,id=3Dvnet,hostfwd=3D:0.0.0.0:0-:22", > > + "-device", "virtio-net-pci,netdev=3Dvnet", > > + "-vnc", ":0,to=3D20", > > + "-serial", "file:%s" % os.path.join(self._tmpdir, "seria= l.out")] > > + if vcpus: > > + self._args +=3D ["-smp", str(vcpus)] >=20 > What about enabling mttcg which isn't default? >=20 > self._args +=3D ["--accel", "tcg,thread=3Dmulti"] Any specific reason to enable it? I think it is not available on older QE= MU. >=20 > > + if os.access("/dev/kvm", os.R_OK | os.W_OK): > > + self._args +=3D ["-enable-kvm"] > > + else: > > + logging.info("KVM not available, not using -enable-kvm") > > + self._data_args =3D [] > [...] Fam