Re: [Xen-devel] [PATCH v17 13/23] x86/VPMU: Interface for setting PMU mode and flags

2015-01-30 Thread Boris Ostrovsky
On 01/30/2015 08:31 AM, Jan Beulich wrote: On 05.01.15 at 22:44, boris.ostrov...@oracle.com wrote: +static long vpmu_unload_next(void *arg) +{ +struct vcpu *last; +int ret; +unsigned int thiscpu = smp_processor_id(); + +if ( thiscpu != vpmu_next_unload_cpu ) +{ +/*

Re: [Xen-devel] [PATCH v17 13/23] x86/VPMU: Interface for setting PMU mode and flags

2015-01-30 Thread Jan Beulich
On 05.01.15 at 22:44, boris.ostrov...@oracle.com wrote: +static long vpmu_unload_next(void *arg) +{ +struct vcpu *last; +int ret; +unsigned int thiscpu = smp_processor_id(); + +if ( thiscpu != vpmu_next_unload_cpu ) +{ +/* Continuation thread may have been

[Xen-devel] [PATCH v17 13/23] x86/VPMU: Interface for setting PMU mode and flags

2015-01-05 Thread Boris Ostrovsky
Add runtime interface for setting PMU mode and flags. Three main modes are provided: * XENPMU_MODE_OFF: PMU is not virtualized * XENPMU_MODE_SELF: Guests can access PMU MSRs and receive PMU interrupts. * XENPMU_MODE_HV: Same as XENPMU_MODE_SELF for non-proviledged guests, dom0 can profile