From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH V5 03/10] xen/arm: Use the new functions for vCPUID/vaffinity transformation Date: Sun, 31 May 2015 13:53:04 +0100 Message-ID: <556B0430.8000406@citrix.com> References: <1432984051-10838-1-git-send-email-cbz@baozis.org> <1432984051-10838-4-git-send-email-cbz@baozis.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yz2k4-0003Fd-7f for xen-devel@lists.xenproject.org; Sun, 31 May 2015 12:53:28 +0000 In-Reply-To: <1432984051-10838-4-git-send-email-cbz@baozis.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chen Baozi , xen-devel@lists.xenproject.org Cc: Julien Grall , Chen Baozi , Ian Campbell List-Id: xen-devel@lists.xenproject.org Hi Chen, On 30/05/2015 12:07, Chen Baozi wrote: > From: Chen Baozi > > There are 3 places to change: > > * Initialise vMPIDR value in vcpu_initialise() > * Find the vCPU from vMPIDR affinity information when accessing GICD > registers in vGIC > * Find the vCPU from vMPIDR affinity information when booting with vPSCI > in vGIC > - Also make the code for PSCI 0.1 use MPIDR-like value as the cpuid. > > Signed-off-by: Chen Baozi > --- > Comments from Julien in the previous review: > > I read more closely the spec of PSCI 0.1 Section 6.3 (ARM DEN 0022A): > > "Ideally platform discovery mechanism such as firmware tables would be > used by secure firmware to describe the set of valid CPUIDs to the > hypervisor or Rich OS, if the former is not present. The hypervisor in > turn can create and supply virtual discovery mechanisms to its guests." > > It looks like to me that the CPUID is equal to the "reg" field in the > CPU node which is an MPIDR-like value. So I think the affinity should be > called in both case. Assuming that I was right here: Reviewed-by: Julien Grall Regards, -- Julien Grall