From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDxrL-0001I6-Gn for qemu-devel@nongnu.org; Mon, 26 Aug 2013 10:33:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDxrE-0000AU-84 for qemu-devel@nongnu.org; Mon, 26 Aug 2013 10:33:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDxrE-00009S-0t for qemu-devel@nongnu.org; Mon, 26 Aug 2013 10:33:28 -0400 Date: Mon, 26 Aug 2013 17:33:20 +0300 From: Gleb Natapov Message-ID: <20130826143320.GA22899@redhat.com> References: <20130813181713.GA5204@irqsave.net> <20130826124031.GB22977@redhat.com> <20130826124941.GA5418@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20130826124941.GA5418@irqsave.net> Subject: Re: [Qemu-devel] KVM guest cpu L3 cache and cpufreq List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Beno=C3=AEt?= Canet Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, Eduardo Habkost On Mon, Aug 26, 2013 at 02:49:41PM +0200, Beno=C3=AEt Canet wrote: >=20 > Hi, >=20 > Thanks for the answer. >=20 > > On Tue, Aug 13, 2013 at 08:17:13PM +0200, Beno=C3=AEt Canet wrote: > > >=20 > > > Hi, > > >=20 > > > I noticed that the l3 cache size of a guest /proc/cpuinfo is not the = same as > > > the l3 cache size of the host. > > >=20 > > > I did not found any references to this in the qemu and KVM code. > > >=20 > > > Is the size of the guest L3 cache fixed in hardware ? > > >=20 > > No, it is hardcoded somewhere in qemu cpuid code. > >=20 > > > Can a patch be written to set it ? > > >=20 > > Yes. >=20 > Ok I'll try to do that. >=20 Talk to Eduardo since this is related to cpuid configuration and he is an expert. > >=20 > > > Similarly I noticed that the frequency in the guest was not reflectin= g the > > > frequency scaling of the host. > > >=20 > > Not sure what you mean here. Frequency as seen where? >=20 > The frequency seen in the host /proc/cpuinfo and the guest /proc/cpuinfo = differs > when a governor kick the cpu frequency scaling: the guest still show the = maximum > frequency of the cpu. >=20 KVM does not emulate frequency scaling. It does not make sense for a guest. > Could this value be reflected dynamically ? >=20 Not sure frequency scaling can be implemented only for read. -- Gleb.