From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr78A-0008U4-RP for qemu-devel@nongnu.org; Tue, 27 Oct 2015 12:29:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr788-0008I9-4s for qemu-devel@nongnu.org; Tue, 27 Oct 2015 12:29:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr787-0008Hv-V1 for qemu-devel@nongnu.org; Tue, 27 Oct 2015 12:29:48 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 1E2398EA35 for ; Tue, 27 Oct 2015 16:29:47 +0000 (UTC) From: marcandre.lureau@redhat.com Date: Tue, 27 Oct 2015 17:29:43 +0100 Message-Id: <1445963383-8345-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] exec: silence hugetlbfs warning under qtest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , mst@redhat.com From: Marc-Andr=C3=A9 Lureau 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. Signed-off-by: Marc-Andr=C3=A9 Lureau --- exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, Error= **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