Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-27 Thread Boris Ostrovsky
On 05/27/2015 08:28 AM, Jan Beulich wrote: On 26.05.15 at 19:50, boris.ostrov...@oracle.com wrote: On 05/26/2015 12:13 PM, Jan Beulich wrote: On 21.05.15 at 19:57, boris.ostrov...@oracle.com wrote: + * guest when PMU_CACHED bit in pmu_flags is set (which is done by the + * hypervisor during

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-27 Thread Jan Beulich
On 26.05.15 at 19:50, boris.ostrov...@oracle.com wrote: On 05/26/2015 12:13 PM, Jan Beulich wrote: On 21.05.15 at 19:57, boris.ostrov...@oracle.com wrote: + * guest when PMU_CACHED bit in pmu_flags is set (which is done by the + * hypervisor during PMU interrupt). Hypervisor will read

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-27 Thread Jan Beulich
On 27.05.15 at 17:18, boris.ostrov...@oracle.com wrote: On 05/27/2015 10:26 AM, Jan Beulich wrote: On 27.05.15 at 15:44, boris.ostrov...@oracle.com wrote: Sorry, I meant amd/intel members of the union below (I forgot we were already in the arch header file): +/* + * Vendor-specific

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-27 Thread Jan Beulich
On 27.05.15 at 15:44, boris.ostrov...@oracle.com wrote: Sorry, I meant amd/intel members of the union below (I forgot we were already in the arch header file): +/* + * Vendor-specific PMU registers. + * RW for both hypervisor and guest. + * Guest's updates to this field

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-26 Thread Boris Ostrovsky
On 05/26/2015 12:13 PM, Jan Beulich wrote: On 21.05.15 at 19:57, boris.ostrov...@oracle.com wrote: + * guest when PMU_CACHED bit in pmu_flags is set (which is done by the + * hypervisor during PMU interrupt). Hypervisor will read updated data in + * XENPMU_flush hypercall and clear PMU_CACHED

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-26 Thread Jan Beulich
On 21.05.15 at 19:57, boris.ostrov...@oracle.com wrote: --- a/xen/include/public/arch-arm.h +++ b/xen/include/public/arch-arm.h @@ -434,6 +434,11 @@ struct xen_arch_domainconfig { #endif +#ifndef __ASSEMBLY__ +/* Stub definition of PMU structure */ +typedef struct xen_pmu_arch {}

[Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-21 Thread Boris Ostrovsky
Add pmu.h header files, move various macros and structures that will be shared between hypervisor and PV guests to it. Move MSR banks out of architectural PMU structures to allow for larger sizes in the future. The banks are allocated immediately after the context and PMU structures store offsets