]> git.proxmox.com Git - mirror_qemu.git/commit
tests: test-smp-parse: Add the test for cores/threads per socket helpers
authorZhao Liu <zhao1.liu@intel.com>
Mon, 23 Oct 2023 09:46:20 +0000 (17:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Nov 2023 08:39:11 +0000 (03:39 -0500)
commit7d5936791ea349d9cef856babcce28470966bfa4
tree4048bdb645487a67dda8b2250716c942ee0de55a
parent07eba9493d14b3ba371e64392effc384246892ea
tests: test-smp-parse: Add the test for cores/threads per socket helpers

Use the different ways to calculate cores/threads per socket, so that
the new CPU topology levels won't be missed in these 2 helpes:

* machine_topo_get_cores_per_socket()
* machine_topo_get_threads_per_socket()

Test the commit a1d027be95bc3 ("machine: Add helpers to get cores/
threads per socket").

Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20231023094635.1588282-2-zhao1.liu@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/unit/test-smp-parse.c