Received: from eggs.gnu.org ([208.118.235.92]:44708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKCcD-0003kh-Ti for qemu-devel@nongnu.org; Mon, 25 Mar 2013 14:59:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKCcC-0001Iw-JH for qemu-devel@nongnu.org; Mon, 25 Mar 2013 14:59:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKCcC-0001Ic-CC for qemu-devel@nongnu.org; Mon, 25 Mar 2013 14:59:28 -0400 Date: Mon, 25 Mar 2013 16:01:07 -0300 From: Eduardo Habkost Message-ID: <20130325190107.GG8494@otherpad.lan.raisama.net> References: <1362017554-1260-1-git-send-email-hpa@zytor.com> <51501B58.1060300@suse.de> <20130325161515.06a2970b@nial.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20130325161515.06a2970b@nial.usersys.redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, Orit Wasserman , Andreas =?iso-8859-1?Q?F=E4rber?= , Anthony Liguori , "H. Peter Anvin" On Mon, Mar 25, 2013 at 04:15:15PM +0100, Igor Mammedov wrote: > On Mon, 25 Mar 2013 10:39:36 +0100 > Andreas F=E4rber wrote: >=20 > > Am 28.02.2013 03:12, schrieb H. Peter Anvin: > > > From: "H. Peter Anvin" > > >=20 > > > Add models for 486SX, and pre-CPUID versions of the 486 (DX & SX). > > > Change the model number for the standard 486DX to a model which > > > actually had CPUID. > > >=20 > > > Note: these models are fairly vestigial, for example most of the FP= U > > > operations still work; only F*ST[CS]W have been modified to appear = as > > > through there is no FPU. > > >=20 > > > This also changes the classic 486 model number to 8 (DX4) which > > > matches the feature set presented. > > >=20 > > > Signed-off-by: H. Peter Anvin [...] > > > + }, > > > + { > > > .name =3D "486", > > > .level =3D 1, > > > .vendor =3D CPUID_VENDOR_INTEL, > > > .family =3D 4, > > > - .model =3D 0, > > > + .model =3D 8, > >=20 > > Such changes have been rejected in the past (e.g., n270 Atom). > > I personally wouldn't object to 486 changes, but I guess it should > > rather be handled via Igor's CPU static properties that I have in my > > review queue: The .model value would be set to 8 but the PC machine > > would be changed alongside to set model =3D 0 for pc-1.4 and earlier. > It doesn't relates to property refactoring nor to slim CPU sub-classes > conversion either. So it could go in independently. >=20 > But is this change safe from migration POV? Migration is exactly the reason we can't include this as-is, and where having static properties would be useful. We need to keep model=3D0 on th= e pc-1.3 and older machine-types, and set model=3D8 only on pc-1.4 and newer. With static properties we can simply set it using the compat_props table; without static properties, we need a compatibility function or global variable to enable the model=3D0 behavior. >=20 > >=20 > > > .stepping =3D 0, > > > .features =3D I486_FEATURES, > > > .xlevel =3D 0, > > > }, --=20 Eduardo