From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjZM6-000842-Al for qemu-devel@nongnu.org; Fri, 14 Dec 2012 12:47:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjZM4-0002yE-Vp for qemu-devel@nongnu.org; Fri, 14 Dec 2012 12:47:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjZM4-0002y4-Mf for qemu-devel@nongnu.org; Fri, 14 Dec 2012 12:47:24 -0500 Date: Fri, 14 Dec 2012 18:47:20 +0100 From: Igor Mammedov Message-ID: <20121214184720.10439cd4@thinkpad.mammed.net> In-Reply-To: <20121214173622.GD17653@otherpad.lan.raisama.net> References: <1355350946-28010-1-git-send-email-ehabkost@redhat.com> <1355350946-28010-4-git-send-email-ehabkost@redhat.com> <50CB4258.3040709@suse.de> <20121214165235.GB3236@otherpad.lan.raisama.net> <50CB5FE9.3050703@suse.de> <20121214173622.GD17653@otherpad.lan.raisama.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/3] target-i386: replace cpuid_*features fields with a feature word array List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Andreas =?UTF-8?B?RsOkcmJlcg==?= , qemu-devel@nongnu.org On Fri, 14 Dec 2012 15:36:22 -0200 Eduardo Habkost wrote: > On Fri, Dec 14, 2012 at 06:20:41PM +0100, Andreas F=C3=A4rber wrote: > > Am 14.12.2012 17:52, schrieb Eduardo Habkost: > > > On Fri, Dec 14, 2012 at 04:14:32PM +0100, Andreas F=C3=A4rber wrote: > > >> Am 12.12.2012 23:22, schrieb Eduardo Habkost: [...] > >=20 > > >> The clock code using first_cpu looks solvable; what about CR4 and MSR > > >> helpers, how performance-sensitive are they? (if they're not yet usi= ng > > >> X86CPU for something else) > > >=20 > > > I guess any CPU-state code inside QEMU is not performance-sensitive, = as > > > it woud already require switching between KVM kernelspace and QEMU > > > userspace. > >=20 > > I mean target-i386/[misc_]helper.c and thus TCG, IIUC. :) >=20 > Oh, right. I wonder how much performance impact it would have, if people > are already using TCG. >=20 > Anyway, would this really have any impact at all? I mean: > ENV_GET_CPU(env) is basically subtracing an constant offset from 'env'. > So I expect similar code to be generated, just using a different offset > from 'env' to get the cpuid_features field. ENV_GET_CPU(env) does dynamic_cast which is expensive. >=20 > --=20 > Eduardo --=20 Regards, Igor