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

2015-05-19 Thread Jan Beulich
>>> On 19.05.15 at 16:40, wrote: > On 05/19/2015 02:48 AM, Jan Beulich wrote: > On 18.05.15 at 18:12, wrote: >>> On 05/18/2015 11:15 AM, Jan Beulich wrote: >>> On 08.05.15 at 23:06, wrote: > +/* > + * Architecture-specific information describing state of the processor at > +

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

2015-05-19 Thread Boris Ostrovsky
On 05/19/2015 02:48 AM, Jan Beulich wrote: On 18.05.15 at 18:12, wrote: On 05/18/2015 11:15 AM, Jan Beulich wrote: On 08.05.15 at 23:06, wrote: +/* + * Architecture-specific information describing state of the processor at + * the time of PMU interrupt. + * Fields of this structure marked as

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

2015-05-18 Thread Jan Beulich
>>> On 18.05.15 at 18:12, wrote: > On 05/18/2015 11:15 AM, Jan Beulich wrote: > On 08.05.15 at 23:06, wrote: >>> +/* >>> + * Architecture-specific information describing state of the processor at >>> + * the time of PMU interrupt. >>> + * Fields of this structure marked as RW for guest can on

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

2015-05-18 Thread Boris Ostrovsky
On 05/18/2015 11:15 AM, Jan Beulich wrote: On 08.05.15 at 23:06, wrote: --- /dev/null +++ b/xen/include/public/arch-x86/pmu.h @@ -0,0 +1,122 @@ +#ifndef __XEN_PUBLIC_ARCH_X86_PMU_H__ +#define __XEN_PUBLIC_ARCH_X86_PMU_H__ + +/* x86-specific PMU definitions */ + +/* AMD PMU registers and structu

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

2015-05-18 Thread Jan Beulich
>>> On 08.05.15 at 23:06, wrote: > --- /dev/null > +++ b/xen/include/public/arch-x86/pmu.h > @@ -0,0 +1,122 @@ > +#ifndef __XEN_PUBLIC_ARCH_X86_PMU_H__ > +#define __XEN_PUBLIC_ARCH_X86_PMU_H__ > + > +/* x86-specific PMU definitions */ > + > +/* AMD PMU registers and structures */ > +struct xen_pmu

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

2015-05-08 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