Thread (16 messages) 16 messages, 3 authors, 2021-08-09

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

From: Pierre Morel <hidden>
Date: 2021-08-09 15:59:33
Also in: kvm


On 8/9/21 12:22 PM, Claudio Imbrenda wrote:
On Mon,  9 Aug 2021 10:48:54 +0200
Pierre Morel [off-list ref] wrote:
quoted
STSI with function code 15 is used to store the CPU configuration
topology.
...
quoted
  
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help