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
>>> 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
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