libx86: Split x86_cpuid_policy_fill_native() out of calculate_raw_policy()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Jul 2018 15:50:03 +0000 (16:50 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 12 Nov 2018 18:07:12 +0000 (18:07 +0000)
commitc66ef0fbe12b3e1e2da849dd85e5b7fe3aa81de5
tree1f0bea87be388f3dd01e16cb986d7946d3abd710
parentc49338ef287c44113476d4c6ccaad7fa2924f8c7
libx86: Split x86_cpuid_policy_fill_native() out of calculate_raw_policy()

This will shortly be wanted by the userspace emulator harnesses as well.

Consolidate the cpuid{,_count}_leaf() helpers beside the structure definition,
rather than having them scattered throughout Xen.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c
xen/include/asm-x86/processor.h
xen/include/xen/lib/x86/cpuid.h
xen/lib/x86/cpuid.c