x86/cpuid: Fix handling of the CPUID.7[0].eax levelling MSR
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Sep 2019 15:59:02 +0000 (16:59 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Sep 2019 12:33:21 +0000 (13:33 +0100)
commitb50d78d0eaffb43d5f5ceeda55fa22c11f47d01b
tree17ed4fe5c49b8445de7f4c95e92d1f9c62cd4cf1
parentaf5793cac20cff6f60fb2f8ed19c5af1201943be
x86/cpuid: Fix handling of the CPUID.7[0].eax levelling MSR

7a0 is an integer field, not a mask - taking the logical and of the hardware
and policy values results in nonsense.  Instead, take the policy value
directly.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@cirtrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domctl.c