Re: [PATCH v4 04/15] xen/sysctl: Nest cpufreq scaling options

2023-06-15 Thread Jason Andryuk
On Thu, Jun 15, 2023 at 10:29 AM Jan Beulich wrote: > > On 15.06.2023 16:07, Jason Andryuk wrote: > > On Thu, Jun 15, 2023 at 9:29 AM Jan Beulich wrote: > >> > >> On 14.06.2023 20:02, Jason Andryuk wrote: > >>> --- a/tools/include/xenctrl.h > >>> +++ b/tools/include/xenctrl.h > >>> @@ -1909,16 +1

Re: [PATCH v4 04/15] xen/sysctl: Nest cpufreq scaling options

2023-06-15 Thread Jan Beulich
On 15.06.2023 16:07, Jason Andryuk wrote: > On Thu, Jun 15, 2023 at 9:29 AM Jan Beulich wrote: >> >> On 14.06.2023 20:02, Jason Andryuk wrote: >>> --- a/tools/include/xenctrl.h >>> +++ b/tools/include/xenctrl.h >>> @@ -1909,16 +1909,20 @@ struct xc_get_cpufreq_para { >>> uint32_t cpuinfo_cur_

Re: [PATCH v4 04/15] xen/sysctl: Nest cpufreq scaling options

2023-06-15 Thread Jason Andryuk
On Thu, Jun 15, 2023 at 9:29 AM Jan Beulich wrote: > > On 14.06.2023 20:02, Jason Andryuk wrote: > > --- a/tools/include/xenctrl.h > > +++ b/tools/include/xenctrl.h > > @@ -1909,16 +1909,20 @@ struct xc_get_cpufreq_para { > > uint32_t cpuinfo_cur_freq; > > uint32_t cpuinfo_max_freq; > >

Re: [PATCH v4 04/15] xen/sysctl: Nest cpufreq scaling options

2023-06-15 Thread Jan Beulich
On 14.06.2023 20:02, Jason Andryuk wrote: > --- a/tools/include/xenctrl.h > +++ b/tools/include/xenctrl.h > @@ -1909,16 +1909,20 @@ struct xc_get_cpufreq_para { > uint32_t cpuinfo_cur_freq; > uint32_t cpuinfo_max_freq; > uint32_t cpuinfo_min_freq; > -uint32_t scaling_cur_freq; >

[PATCH v4 04/15] xen/sysctl: Nest cpufreq scaling options

2023-06-14 Thread Jason Andryuk
Add a union and struct so that most of the scaling variables of struct xen_get_cpufreq_para are within in a binary-compatible layout. This allows cppc_para to live in the larger union and use uint32_ts - struct xen_cppc_para will be 10 uint32_t's. The new scaling struct is 3 * uint32_t + 16 bytes