Hi, On 04/11/14 11:55, Christoffer Dall wrote: > On Fri, Oct 31, 2014 at 05:26:46PM +0000, Andre Przywara wrote: >> The MMIO accessors for GICD_I[CS]ENABLER, GICD_I[CS]PENDR and >> GICD_ICFGR behave very similar in GICv3, although the way the >> affected vCPU is determined differs. > > They behave similarly to each other (the registers) or similarly to how > they are implemented for GICv2? Similarly to GICv2. Actually we have _three_ places where we need to handle them: for the GICv2 distributor, for the GICv3 distributor (handling only SPIs) and for the GICv3 redistributor (caring about PPIs and SGIs). So I didn't want to have very similar code at three places, thus the refactoring. >> Factor out a generic, backend-facing implementation and use small >> wrappers in the current GICv2 emulation to ease code sharing later. >> >> Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx> > > I can't really understand the motivation from your commit message, but > the code looks fine and I suppose I'll realize the motivation later: Hopefully the actual GICv3 emulation code will provide that insight. I can add the above explanation to the commit message to make this more obvious. > > Reviewed-by: Christoffer Dall <christoffer.dall@xxxxxxxxxx> Thanks! Andre _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm