From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: Question about ARM GIC Date: Fri, 16 Aug 2013 11:17:22 +0100 Message-ID: <520DFC32.7060302@linaro.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: joshsystem@gmail.com Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 08/16/2013 10:46 AM, Josh Zhao wrote: > Hi, Hi, > Anyone can help me understand that the Dom0 and DomU will initialize > GICD in booting stage, but I don't see any code to remap GICD for > guest OS. I am wondering how it works? The GIC doesn't handle the virtualization for the distributor, so it's emulated by Xen. All accesses to the GICD will trap and redirect to xen/arch/arm/vgic.c. You can look at vgic_distr_mmio_{read,write} in the previous file. Cheers, -- Julien Grall