Re: [Xen-devel] [PATCH 2/2] add thread and state info to XEN_SYSCTL_cputopoinfo

2018-09-03 Thread Juergen Gross
On 03/09/18 15:49, Jan Beulich wrote: On 31.08.18 at 18:22, wrote: >> @@ -434,15 +434,19 @@ struct xen_sysctl_lockprof_op { >> }; >> >> /* XEN_SYSCTL_cputopoinfo */ >> +#define XEN_TOPO_STATE_OFFLINE 0 >> +#define XEN_TOPO_STATE_ONLINE 1 >> #define XEN_INVALID_THREAD_ID (~0U) >> #d

Re: [Xen-devel] [PATCH 2/2] add thread and state info to XEN_SYSCTL_cputopoinfo

2018-09-03 Thread Jan Beulich
>>> On 31.08.18 at 18:22, wrote: > @@ -434,15 +434,19 @@ struct xen_sysctl_lockprof_op { > }; > > /* XEN_SYSCTL_cputopoinfo */ > +#define XEN_TOPO_STATE_OFFLINE 0 > +#define XEN_TOPO_STATE_ONLINE 1 > #define XEN_INVALID_THREAD_ID (~0U) > #define XEN_INVALID_CORE_ID (~0U) > #define

[Xen-devel] [PATCH 2/2] add thread and state info to XEN_SYSCTL_cputopoinfo

2018-08-31 Thread Juergen Gross
Today the topology information obtained via XEN_SYSCTL_cputopoinfo doesn't contain the thread id. Add that. As especially with the boot parameter "smt=0" offline cpus are more common these days add a state indicator (online/offline) to the returned information as well. Signed-off-by: Juergen Gros