[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] perf hardware event on ARM64
On Tue, Nov 3, 2015 at 7:48 AM, Ian Campbell <ian.campbell@xxxxxxxxxx> wrote:
Thanks! Â
I figured this out with Christoffer Dall's help. On X-gene, IRQBypDisGrp1 and IFQBypDisGrp1 bits are set in non-secure GICC_CTLR copy on native Linux. This is not to bypass legacy interrupt signal. Xen clears those bits in gic_v2_cpuinit() function. [1] After I modified it to preserve bypass bits as native Linux does, FIQ didn't come any more, and I got pmu overflow interrupts in Dom0! I have another question though, not related to FIQ. Xen seems to assume that only SPIs are delivered to domain, and they are set inÂroute_irq_to_guest() when creating domain. However pmu interrupt is PPI (28 on X-gene), and it needs to be enabled for each cpu. (i.e. set enable bit in GICD_ISENABLER0) So, currently pmu interrupt is only enabled on cpu0. What would be the best way to make pmu interrupts be routed to all cpus if any? One way I can think of is to useÂrequest_irq() function like timer interrupts, and get interrupts in Xen and inject interrupts to domain in turn. Or simply calling route_irq_to_guest() on each cpu will do? If so, I'm not sure using vcpu[0] in current Xen code in gic_route_irq_to_guest() may have some side effect. Thanks, Jintack Â
_______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |