From: Daniel P. Berrange Date: Wed, 25 Nov 2015 10:52:29 +0000 (+0000) Subject: exec: remove warning about mempath and hugetlbfs X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~121^2~1^2~33^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfc2a1a1f41c2861b20e8318c0541d0823427802;p=sdk%2Femulator%2Fqemu.git exec: remove warning about mempath and hugetlbfs The gethugepagesize() method in exec.c printed a warning if the file path for "-mem-path" or "-object memory-backend-file" was not on a hugetlbfs filesystem. This warning is bogus, because QEMU functions perfectly well with the path on a regular tmpfs filesystem. Use of hugetlbfs vs tmpfs is a choice for the management application or end user to make as best fits their needs. As such it is inappropriate for QEMU to have an opinion on whether the user's choice is right or wrong in this case. Signed-off-by: Daniel P. Berrange Message-Id: <1448448749-1332-3-git-send-email-berrange@redhat.com> Signed-off-by: Paolo Bonzini --- diff --git a/exec.c b/exec.c index b09f18b2a4..de1cf19154 100644 --- a/exec.c +++ b/exec.c @@ -1196,9 +1196,6 @@ static long gethugepagesize(const char *path, Error **errp) return 0; } - if (fs.f_type != HUGETLBFS_MAGIC) - fprintf(stderr, "Warning: path not on HugeTLBFS: %s\n", path); - return fs.f_bsize; }