Re: [kvm-unit-tests PATCH v1 4/4] s390x: Topology: checking Configuration Topology Information

Pierre Morel
2021-08-09T15:59:33Z

On 8/9/21 12:22 PM, Claudio Imbrenda wrote:
> On Mon, 9 Aug 2021 10:48:54 +0200
> Pierre Morel <pmorel@linux.ibm.com> wrote:
>
>> STSI with function code 15 is used to store the CPU configuration
>> topology.
>>
...
>>
>> +static void check_sysinfo_15_1_x(struct sysinfo_15_1_x *info)
>> +{
>> + struct topology_container *tc, *end;
>> + struct topology_core *cpus;
>> + int nb_nl0 = 0, nb_nl1 = 0, nb_nl2 = 0, nb_nl3 = 0;
>> +
>> + if (mnest > 5)
>> + report(info->mag6 == 0, "topology level 6");
>> + if (mnest > 4)
>> + report(info->mag5 == nodes, "Maximum number of
>> nodes");
>> + if (mnest > 3)
>> + report(info->mag4 == drawers, "Maximum number of
>> drawers");
>> + if (mnest > 2)
>> + report(info->mag3 == books, "Maximum number of
>> book");
>
> * books

right, thanks

...

regards,
Pierre

--
Pierre Morel
IBM Lab Boeblingen