[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v19 13/14] x86/VPMU: Add privileged PMU mode
>>> On 17.03.15 at 15:54, <boris.ostrovsky@xxxxxxxxxx> wrote: > Add support for privileged PMU mode (XENPMU_MODE_ALL) which allows privileged > domain (dom0) profile both itself (and the hypervisor) and the guests. While > this mode is on profiling in guests is disabled. > > Signed-off-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> but ... > @@ -177,17 +183,18 @@ void vpmu_do_interrupt(struct cpu_user_regs *regs) > sampling = sampled; > > vpmu = vcpu_vpmu(sampling); > - if ( !is_hvm_vcpu(sampling) ) > + if ( !is_hvm_vcpu(sampling) || (vpmu_mode & XENPMU_MODE_ALL) ) > { > /* PV(H) guest */ > const struct cpu_user_regs *cur_regs; > uint64_t *flags = &vpmu->xenpmu_data->pmu.pmu_flags; > - uint32_t domid = DOMID_SELF; > + uint32_t domid; ... why is this not domid_t? Probably needs adjustment in an earlier patch. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |