x86/cpuid: Store the toolstacks choice of hypervisor max leaf
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Jan 2017 12:20:51 +0000 (12:20 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 13 Jan 2017 13:16:57 +0000 (13:16 +0000)
commit9db5d75c91dba258a6e834b730d6e13263dcc271
tree1c57be953fd4e1506a89f689a71688fc74f34046
parent07097cc0c6bdb08873ae627ca0f36e593be1d7c0
x86/cpuid: Store the toolstacks choice of hypervisor max leaf

This removes all dependencies on the legacy cpuids[] array from
cpuid_hypervisor_leaves().  Swap a BUG() to an ASSERT_UNREACHABLE(), because
in the unlikely case that we hit it, returning all zeros to the guest is fine.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domctl.c
xen/arch/x86/traps.c
xen/include/asm-x86/cpuid.h