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? Thanks, Josh
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
I got it, thanks! 2013/8/16 Julien Grall <julien.grall@linaro.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