From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1betzx-0002uE-4t for qemu-devel@nongnu.org; Tue, 30 Aug 2016 21:07:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1betzr-0006un-4m for qemu-devel@nongnu.org; Tue, 30 Aug 2016 21:07:24 -0400 Message-ID: <1472605613.2388.73.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Wed, 31 Aug 2016 11:06:53 +1000 In-Reply-To: <20160830062820.GB1753@littlecatz> References: <1470388537-2908-1-git-send-email-clg@kaod.org> <1470388537-2908-4-git-send-email-clg@kaod.org> <20160816023900.GC14530@voom.fritz.box> <330ecf9d-6750-4b5f-ea5d-660e3f6a11d0@kaod.org> <20160829143021.GF2166@littlecatz> <1472537735.2388.32.camel@kernel.crashing.org> <20160830062820.GB1753@littlecatz> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/3] ppc/pnv: add a PowerNVCPUCore object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: =?ISO-8859-1?Q?C=E9dric?= Le Goater , qemu-ppc@nongnu.org, Alexander Graf , qemu-devel@nongnu.org On Tue, 2016-08-30 at 02:28 -0400, David Gibson wrote: > No.. the PIR itself is a cpu level construct (and we already have a > place for that in the cpu state).=C2=A0 The DT id as such isn't, althou= gh > it happens to have the same value.=C2=A0 The fact it has the same value= is > itself a machine type property. >=20 > [Aside: removing dt_id from the cpu will require disentangling it from > the kvm vcpu id] On P8 and P9 the PIR of a thread is a chip property, as it encodes the HW node, chip, core and thread ID (hint: it's not 0 based on P8, well the core isn't). So it has to match accordingly for things like core XSCOMs which we want to start supporting some of. It also has to match what's in the device-tree as a pretty standard requirement of all powerpc device-trees. Finally it also happen to be the target interrupt server on all known implementations. Cheers, Ben.