Received: from eggs.gnu.org ([2001:4830:134:3::10]:40671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGTiA-00016c-2U for qemu-devel@nongnu.org; Mon, 02 Sep 2013 08:58:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGTi3-00022y-T3 for qemu-devel@nongnu.org; Mon, 02 Sep 2013 08:58:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGTi3-00022t-LD for qemu-devel@nongnu.org; Mon, 02 Sep 2013 08:58:23 -0400 Date: Mon, 2 Sep 2013 09:58:18 -0300 From: Eduardo Habkost Message-ID: <20130902125531.GD3041@otherpad.lan.raisama.net> References: <1377635906-17274-1-git-send-email-benoit@irqsave.net> <20130902124548.GF5073@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20130902124548.GF5073@irqsave.net> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] forward cpuid leaves when using -cpu host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: imammedo@redhat.com, qemu-devel@nongnu.org, afaerber@suse.de On Mon, Sep 02, 2013 at 02:45:48PM +0200, Beno=EEt Canet wrote: >=20 > Ping, >=20 > I am aware that this patch must be a QObject/CPUState monstruosity but = I don't > see how I could store the fact that the cpu derive from a "host" type c= pu. > The alternative would be to remember a variable number of leaves and se= rving > them to the guest as needed but I don't find that much cleaner. The idea makes sense for -cpu host, and it is not intrusive for all other CPU models. I just didn't take the time to look at the code to send my "reviewed-by:" line yet. I plan to take a look today or tomorrow. >=20 > Best regards >=20 > Beno=EEt >=20 > > Le Tuesday 27 Aug 2013 =E0 22:38:25 (+0200), Beno=EEt Canet a =E9crit= : > > This patch uses directly cpuid_host to forward the informations inste= ad of > > storing a variable number of leaves in the cpu states. > >=20 > > Beno=EEt Canet (1): > > i386: forward CPUID cache leaves when -cpu host is used > >=20 > > target-i386/cpu.c | 19 +++++++++++++++++++ > > target-i386/cpu.h | 1 + > > 2 files changed, 20 insertions(+) > >=20 > > --=20 > > 1.7.10.4 > >=20 --=20 Eduardo