Received: from eggs.gnu.org ([2001:4830:134:3::10]:53045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEJT0-0008Un-Rl for qemu-devel@nongnu.org; Tue, 27 Aug 2013 09:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEJSv-0001hB-VI for qemu-devel@nongnu.org; Tue, 27 Aug 2013 09:37:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEJSv-0001go-Nh for qemu-devel@nongnu.org; Tue, 27 Aug 2013 09:37:49 -0400 Date: Tue, 27 Aug 2013 10:37:44 -0300 From: Eduardo Habkost Message-ID: <20130827133744.GX2631@otherpad.lan.raisama.net> References: <20130813181713.GA5204@irqsave.net> <20130826124031.GB22977@redhat.com> <20130826124941.GA5418@irqsave.net> <20130826143320.GA22899@redhat.com> <20130826164526.GB5418@irqsave.net> <20130826204729.GW2631@otherpad.lan.raisama.net> <20130827131816.GA5436@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20130827131816.GA5436@irqsave.net> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] KVM guest cpu L3 cache and cpufreq List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: pbonzini@redhat.com, Igor Mammedov , qemu-devel@nongnu.org, Gleb Natapov , Andreas =?iso-8859-1?Q?F=E4rber?= On Tue, Aug 27, 2013 at 03:18:16PM +0200, Beno=EEt Canet wrote: [...] > > > Do you have some recommandations regarding the other fields of the = edx register ? > >=20 > > Probably it will be a good idea to let each CPU model have their own > > defaults for the cache information. >=20 > Do you mean querying the host CPUID registers and forwarding the values= to the > guest ? No, I mean that it would make sense to have "-cpu 486" expose a different cache topology from "-cpu Haswell" by default. But a "forward host cache information to guest" mode may be useful, too, and it could be the default mode for "-cpu host". >=20 > >=20 > > > What would be an acceptable user interface to set this ? > >=20 > > Things I can remember from the top of my head: > >=20 > > * It would be interesting to redo this patch, before doing anything = else: > > https://github.com/ehabkost/qemu-hacks/commit/10b675fa1269a65a5535= 86545fdbcd95ace79d65 > > * We need to keep compatibility on existing machine-types (not chang= e > > the cache size); > > * If some information is reported on multiple CPUID leaves, we need = to > > keep them consistent with each other (see the FIXME comments on th= e > > URL above); > I could write a patch to fix broken CPUID leaves. >=20 > But how would it work regarding compatibility ? Is it right to just fix= the > leaves or does the machine type rule apply here ? Yes, if you change anything guest-visible, you need to keep compatibility on older machine-types. --=20 Eduardo