x86/hyperv: stash and use the configured max VP index
authorWei Liu <liuwe@microsoft.com>
Wed, 29 Apr 2020 10:41:44 +0000 (11:41 +0100)
committerWei Liu <wl@xen.org>
Wed, 6 May 2020 09:40:42 +0000 (10:40 +0100)
commitb58dc6dbfa3a038c5a22f06861a7652da80eca28
tree09bcf22c40bcf6df246734855ebd910d54c7c436
parent779efdbb502b38c66b774b124fa0ceed254875bd
x86/hyperv: stash and use the configured max VP index

The value returned from CPUID is the maximum number for virtual
processors supported by Hyper-V. It could be larger than the maximum
number of virtual processors configured.

Stash the configured number into a variable and use it in calculations.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/guest/hyperv/hyperv.c
xen/arch/x86/guest/hyperv/private.h
xen/arch/x86/guest/hyperv/tlb.c
xen/arch/x86/guest/hyperv/util.c