From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdjJ5-0006Kt-5m for qemu-devel@nongnu.org; Tue, 05 Nov 2013 11:16:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdjIz-0007CA-4U for qemu-devel@nongnu.org; Tue, 05 Nov 2013 11:16:43 -0500 Message-ID: <527919E1.1000902@suse.de> Date: Tue, 05 Nov 2013 17:16:33 +0100 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1383536166-8673-1-git-send-email-aik@ozlabs.ru> <527761B7.8050402@ozlabs.ru> <20131105040010.GB2832@drongo> <7403BE51-422E-4987-A20F-F22655829ECC@suse.de> In-Reply-To: <7403BE51-422E-4987-A20F-F22655829ECC@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] RFC: powerpc: add PVR compatibility check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf , Paul Mackerras Cc: Alexey Kardashevskiy , qemu-ppc , QEMU Developers , Anthony Liguori Am 05.11.2013 07:05, schrieb Alexander Graf: >=20 >=20 > Am 05.11.2013 um 05:00 schrieb Paul Mackerras : >=20 >> On Mon, Nov 04, 2013 at 10:05:58AM +0100, Alexander Graf wrote: >>> >>> Yeah, we really need to check that guest vpcu =3D=3D host vcpu for HV= KVM. >> >> In general I agree, but the one difficulty I see is that a check for >> exact equality will interact badly with qemu's habit of picking a >> specific processor version when the user specifies something general >> like "POWER7". So if the user does -cpu POWER7 on a machine with >> (for example) a POWER7 v2.1 processor, but qemu arbitrarily picks the >> PVR for POWER7 v2.3, then it will fail, which will be completely >> puzzling to the user -- "I asked for POWER7, and it is a POWER7, >> what's the problem??". >> >> Maybe if the user asks for a non-specific processor type, and the >> host's PVR matches the request, then qemu should take the host's PVR >> rather than just picking some arbitrary processor version. >=20 > Yup. But then it's no longer generally reproducible: "POWER7" won't be "POWER7" on another machine. One thing I original did iirc was to hide the aliases from QMP. You can always do stupid things on the command line and then we can blame you, but if libvirt and upper layers don't offer "POWER7" to the end user then we don't need to worry about the average user misinterpreting its semantics. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg