qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH v2 6/6] Pass cpu speed into SM BIOS.


From: Gleb Natapov
Subject: Re: [Qemu-devel] Re: [PATCH v2 6/6] Pass cpu speed into SM BIOS.
Date: Tue, 26 Aug 2008 09:34:16 +0300

On Mon, Aug 25, 2008 at 09:15:51PM +0200, Sebastian Herbszt wrote:
> Gleb Natapov wrote:
>
> <snip>
>> +#define CPUFREQ_PREFIX "/sys/devices/system/cpu"
> <snip>>
>> + f = fopen("/proc/cpuinfo", "r");
> <snip>
>
> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]