From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr97t-0008Qn-L0 for qemu-devel@nongnu.org; Tue, 27 Oct 2015 14:37:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr97o-000410-Hk for qemu-devel@nongnu.org; Tue, 27 Oct 2015 14:37:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr97o-00040w-Ce for qemu-devel@nongnu.org; Tue, 27 Oct 2015 14:37:36 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 17DD896EC for ; Tue, 27 Oct 2015 18:37:36 +0000 (UTC) Date: Tue, 27 Oct 2015 20:37:33 +0200 From: "Michael S. Tsirkin" Message-ID: <20151027203651-mutt-send-email-mst@redhat.com> References: <1445963383-8345-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1445963383-8345-1-git-send-email-marcandre.lureau@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] exec: silence hugetlbfs warning under qtest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com Cc: qemu-devel@nongnu.org On Tue, Oct 27, 2015 at 05:29:43PM +0100, marcandre.lureau@redhat.com wro= te: > From: Marc-Andr=E9 Lureau >=20 > vhost-user-test prints a warning. A test should not need to run on > hugetlbfs, let's silence the warning under qtest. Unfortunately, the > condition can't check on qtest_enabled() or qtest_driver() since they > are initialized later. >=20 > Signed-off-by: Marc-Andr=E9 Lureau Let's move the warning to somewhere later then. > --- > exec.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/exec.c b/exec.c > index 8af2570..d9c231d 100644 > --- a/exec.c > +++ b/exec.c > @@ -1194,8 +1194,9 @@ static long gethugepagesize(const char *path, Err= or **errp) > return 0; > } > =20 > - if (fs.f_type !=3D HUGETLBFS_MAGIC) > + if (fs.f_type !=3D HUGETLBFS_MAGIC && !getenv("QTEST_QEMU_BINARY")= ) { > fprintf(stderr, "Warning: path not on HugeTLBFS: %s\n", path); > + } > =20 > return fs.f_bsize; > } > --=20 > 2.4.3