Re: [PATCH v2 3/3] xen: Expose the PMU to the guests

2021-10-07 Thread Jan Beulich
On 07.10.2021 10:21, Michal Orzel wrote: > Hi Jan, > > On 07.10.2021 10:03, Jan Beulich wrote: >> On 06.10.2021 12:58, Michal Orzel wrote: >>> --- a/xen/arch/x86/domain.c >>> +++ b/xen/arch/x86/domain.c >>> @@ -692,6 +692,12 @@ int arch_sanitise_domain_config(struct >>> xen_domctl_createdomain

Re: [PATCH v2 3/3] xen: Expose the PMU to the guests

2021-10-07 Thread Michal Orzel
Hi Jan, On 07.10.2021 10:03, Jan Beulich wrote: > On 06.10.2021 12:58, Michal Orzel wrote: >> --- a/xen/arch/x86/domain.c >> +++ b/xen/arch/x86/domain.c >> @@ -692,6 +692,12 @@ int arch_sanitise_domain_config(struct >> xen_domctl_createdomain *config) >> return -EINVAL; >> } >>

Re: [PATCH v2 3/3] xen: Expose the PMU to the guests

2021-10-07 Thread Jan Beulich
On 06.10.2021 12:58, Michal Orzel wrote: > --- a/xen/arch/x86/domain.c > +++ b/xen/arch/x86/domain.c > @@ -692,6 +692,12 @@ int arch_sanitise_domain_config(struct > xen_domctl_createdomain *config) > return -EINVAL; > } > > +if ( config->flags & XEN_DOMCTL_CDF_vpmu ) > +{

Re: [PATCH v2 3/3] xen: Expose the PMU to the guests

2021-10-06 Thread Christian Lindig
On 6 Oct 2021, at 11:58, Michal Orzel mailto:michal.or...@arm.com>> wrote: Add parameter vpmu to xl domain configuration syntax to enable the access to PMU registers by disabling the PMU traps(currently only for ARM). The current status is that the PMU registers are not virtualized and the

[PATCH v2 3/3] xen: Expose the PMU to the guests

2021-10-06 Thread Michal Orzel
Add parameter vpmu to xl domain configuration syntax to enable the access to PMU registers by disabling the PMU traps(currently only for ARM). The current status is that the PMU registers are not virtualized and the physical registers are directly accessible when this parameter is enabled. There