mshyperv: Introduce hv_numa_node_to_pxm_info()
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Fri, 22 Mar 2024 21:10:26 +0000 (14:10 -0700)
committerWei Liu <wei.liu@kernel.org>
Fri, 22 Mar 2024 23:40:36 +0000 (23:40 +0000)
commit1f1dc442c57ec61c08d21d47e4c5b4f16446fe00
treefb108408ad651e4021ef597767f70cba8e508eba
parente249884e106b81c34f8050d23935ffc12623843f
mshyperv: Introduce hv_numa_node_to_pxm_info()

Factor out logic for converting numa node to hv_proximity_domain_info
into a helper function.

Change hv_proximity_domain_info to a struct to improve readability.

While at it, rename hv_add_logical_processor_* structs to the correct
hv_input_/hv_output_ prefix, and remove the flags field which is not
present in the ABI.

Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Link: https://lore.kernel.org/r/1711141826-9458-1-git-send-email-nunodasneves@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1711141826-9458-1-git-send-email-nunodasneves@linux.microsoft.com>
arch/x86/hyperv/hv_proc.c
include/asm-generic/hyperv-tlfs.h
include/asm-generic/mshyperv.h