From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v4 2/4] xen/arm: gic: Check the size of the CPU and vCPU interface retrieved from DT Date: Fri, 23 Oct 2015 14:21:20 +0100 Message-ID: <1445606480.2374.160.camel@citrix.com> References: <1444328634-32110-1-git-send-email-julien.grall@citrix.com> <1444328634-32110-3-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 1ZpcHc-0001sn-D0 for xen-devel@lists.xenproject.org; Fri, 23 Oct 2015 13:21:24 +0000 In-Reply-To: <1444328634-32110-3-git-send-email-julien.grall@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall , xen-devel@lists.xenproject.org Cc: Zoltan Kiss , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, 2015-10-08 at 19:23 +0100, Julien Grall wrote: > The size of the CPU interface will used in a follow-up patch to map the ^be > region in Xen memory. > > Based on GICv2 spec, the CPU interface should at least be 8KB, although > most of the platform we are supporting use incorrectly the GICv1 size > (i.e 4KB) in their DT. Only warn and update the size to avoid any > breakage on these platforms. > > Furthermore, Xen is relying on the fact that the Virtual CPU interface > been at least 8KB. As in reality the Virtual CPU interface matches the s/been/is/ > + /* TODO: Add check on distributor */ > + > + /* > + * The GICv2 CPU interface should at least be 8KB. Although, most of the DT > + * doesn't correctly set it and use the GICv1 CPU interface size (i.e 4KB). don't > + &vbase, &vsize); > if ( res ) > return; > > + /* > + * We emulate a vGICv2 using a GIC CPU interface of GUEST_GICC_SIZE. > + * So only support GICv2 on GICv3 when the virtuaL CPU interface is s/L/l/ Apart from the typos: Acked-by: Ian Campbell