Received: from eggs.gnu.org ([2001:4830:134:3::10]:50326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSyTn-00060u-BG for qemu-devel@nongnu.org; Tue, 03 Mar 2015 20:52:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSyTj-0003vp-9z for qemu-devel@nongnu.org; Tue, 03 Mar 2015 20:52:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSyTj-0003vb-3i for qemu-devel@nongnu.org; Tue, 03 Mar 2015 20:52:03 -0500 Date: Tue, 3 Mar 2015 22:51:52 -0300 From: Eduardo Habkost Message-ID: <20150304015152.GA13041@thinpad.lan.raisama.net> References: <1424986952-18579-1-git-send-email-ehabkost@redhat.com> <1424986952-18579-3-git-send-email-ehabkost@redhat.com> <54F4A330.6050001@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <54F4A330.6050001@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 2/5] target-i386: Move CPUX86State.cpuid_apic_id to X86CPU.apic_id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Gu Zheng , Igor Mammedov , qemu-devel@nongnu.org, Paolo Bonzini On Mon, Mar 02, 2015 at 06:51:44PM +0100, Andreas F=E4rber wrote: > Am 26.02.2015 um 22:42 schrieb Eduardo Habkost: > > The field doesn't need to be inside CPUState, and it is not specific = for > > the CPUID instruction, so move and rename it. > >=20 > > Reviewed-by: Paolo Bonzini > > Signed-off-by: Eduardo Habkost >=20 > Really great, >=20 > Reviewed-by: Andreas F=E4rber This has a funny side-effect visible to emulated code: the memcpy() at cpu_copy() will not copy the APIC ID anymore and the APIC ID will be different every time a new thread is created by *-user. That's good news: it means we can already initialize apic_id to 0 on *-user and existing behavior will be kept. But I recommend applying a patch to do that (I will include one in v4 of this series) before this one. --=20 Eduardo