>>> On 17.03.15 at 15:54, <boris.ostrov...@oracle.com> 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.ostrov...@oracle.com>
Acked-by: Jan Beulich <jbeul...@suse.com> 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@lists.xen.org http://lists.xen.org/xen-devel