Received: from eggs.gnu.org ([2001:4830:134:3::10]:58056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdZhB-0007Z9-8T for qemu-devel@nongnu.org; Tue, 05 Nov 2013 01:01:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdZh5-0002X3-8t for qemu-devel@nongnu.org; Tue, 05 Nov 2013 01:00:57 -0500 References: <1383527453-6489-1-git-send-email-aik@ozlabs.ru> <50BDF498-54CD-45C6-AB84-F7F1252FD8F6@suse.de> <1383594148.25829.6.camel@snotra.buserror.net> <5278494D.7050809@ozlabs.ru> <1383616086.25829.53.camel@snotra.buserror.net> Mime-Version: 1.0 (1.0) In-Reply-To: <1383616086.25829.53.camel@snotra.buserror.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <44254A54-5000-49B7-ACFA-43EB048A5D98@suse.de> From: Alexander Graf Date: Tue, 5 Nov 2013 07:00:39 +0100 Subject: Re: [Qemu-devel] [PATCH v3] ppc: introduce CPUPPCState::cpu_dt_id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Scott Wood Cc: Alexey Kardashevskiy , QEMU Developers , Bharat Bhushan , Paolo Bonzini , Paul Mackerras , Badari Pulavarty , "list@suse.de:PReP" , David Gibson Am 05.11.2013 um 02:48 schrieb Scott Wood : > On Tue, 2013-11-05 at 12:26 +1100, Alexey Kardashevskiy wrote: >> On 11/05/2013 06:42 AM, Scott Wood wrote: >>> On Mon, 2013-11-04 at 10:41 +0100, Alexander Graf wrote: >>>> What we really have are 3 semantically separate entities: >>>>=20 >>>> * QEMU internal cpu id >>>> * KVM internal cpu id >>>> * DT exposed cpu id >>>>=20 >>>> As you have noted, it's a good idea to keep the QEMU internal cpu id >>>> linear, thus completely separate from the others. The DT exposed cpu id= >>>> should be 100% local to hw/ppc/spapr*.c. I don't think any code outside= >>>> of the DT generation and anything that accesses the "Virtual Processor >>>> Number" in sPAPR needs to care about the DT cpu id. All that code is >>>> 100% KVM agnostic. >>>=20 >>> This patch isn't just for sPAPR... On e500 the DT cpu id is supposed to= >>> match the MPIC cpu id. >>=20 >>=20 >> At least is my patch correct for e500? >=20 > I think so. >=20 >> I do not really know what is the difference between e500 and spapr in thi= s part. >=20 > e500 does not have sPAPR, and if the DT ID is "100% local to > hw/ppc/spapr*.c" then the MPIC code will have a problem. >=20 > Currently we don't support smt on e500 in QEMU, but e6500 (an > e500-derivative) does have smt, so it could happen in the future. Sure, at that point we add logic that syncs the kvm and dt ids to whatever t= he kernel expects from the e500 machine file. The current logic that says "every Nth vcpu id is a core, the ones in betwee= n are threads" is fairly implementation specific to the spapr hv code, no? Alex