]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/topology: Introduce helpers for various topology info of different level
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 19 Dec 2024 11:01:20 +0000 (06:01 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jan 2025 22:34:45 +0000 (23:34 +0100)
commite60cbeec190d349682bf97cf55446e8ae260b11a
tree48d9af2b3ef0b8984a171dff351950b8668d5f94
parent8f78378de70fc79fdc7e1318496bd91ddd22df49
i386/topology: Introduce helpers for various topology info of different level

Introduce various helpers for getting the topology info of different
semantics. Using the helper is more self-explanatory.

Besides, the semantic of the helper will stay unchanged even when new
topology is added in the future. At that time, updating the
implementation of the helper without affecting the callers.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20241219110125.1266461-6-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/hw/i386/topology.h
target/i386/cpu.c