From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 06/17] Use statfs to determine size of huge pages Date: Sun, 17 May 2009 20:00:40 +0300 Message-ID: <4A1042B8.2010407@redhat.com> References: <1242574999-20887-1-git-send-email-aliguori@us.ibm.com> <1242574999-20887-7-git-send-email-aliguori@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Glauber Costa , Joerg Roedel To: Anthony Liguori Return-path: Received: from mx2.redhat.com ([66.187.237.31]:48174 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752697AbZEQRAn (ORCPT ); Sun, 17 May 2009 13:00:43 -0400 In-Reply-To: <1242574999-20887-7-git-send-email-aliguori@us.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: Anthony Liguori wrote: > From: Joerg Roedel > > The current method of finding out the size of huge pages does not work > reliably anymore. Current Linux supports more than one huge page size > but /proc/meminfo only show one of the supported sizes. > To find out the real page size used can be found by calling statfs. This > patch changes qemu to use statfs instead of parsing /proc/meminfo. > Since we don't support 1GBpages in stable-0.10, this is unneeded. -- error compiling committee.c: too many arguments to function