From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXs8B-0003of-Iq for qemu-devel@nongnu.org; Tue, 26 Aug 2008 02:34:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXs8A-0003nj-4g for qemu-devel@nongnu.org; Tue, 26 Aug 2008 02:34:18 -0400 Received: from [199.232.76.173] (port=33859 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXs8A-0003ng-05 for qemu-devel@nongnu.org; Tue, 26 Aug 2008 02:34:18 -0400 Received: from il.qumranet.com ([212.179.150.194]:37804) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KXs89-0006t9-G6 for qemu-devel@nongnu.org; Tue, 26 Aug 2008 02:34:17 -0400 Received: from gleb-debian.qumranet.com (gleb-debian.qumranet.com.qumranet.com [172.16.15.143]) by il.qumranet.com (Postfix) with ESMTP id 7F222250310 for ; Tue, 26 Aug 2008 09:34:16 +0300 (IDT) Date: Tue, 26 Aug 2008 09:34:16 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] Re: [PATCH v2 6/6] Pass cpu speed into SM BIOS. Message-ID: <20080826063416.GT6192@minantech.com> References: <20080825095800.18703.30602.stgit@gleb-debian.qumranet.com.qumranet.com> <20080825095830.18703.14942.stgit@gleb-debian.qumranet.com.qumranet.com> <023801c906e7$100ab900$0201a8c0@zeug> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <023801c906e7$100ab900$0201a8c0@zeug> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Aug 25, 2008 at 09:15:51PM +0200, Sebastian Herbszt wrote: > Gleb Natapov wrote: > > >> +#define CPUFREQ_PREFIX "/sys/devices/system/cpu" > > >> + f = fopen("/proc/cpuinfo", "r"); > > > How stable are the values provided by those files? > AFAIK the data from /proc/cpuinfo does change if cpufreq is used. Looking at the code it is indeed how it works. > Could this somehow "hurt" the VM, e.g. by SMBIOS table value > possibly changing on consecutive qemu starts? > Don't know, but on one of my PCs SMBIOS value for CPU speed is greater then /proc/cpuinfo value. -- Gleb.