x86/CPUID: correct error indicator for max extended leaf
authorJan Beulich <jbeulich@suse.com>
Thu, 30 Apr 2020 08:45:09 +0000 (10:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 30 Apr 2020 08:45:09 +0000 (10:45 +0200)
commit0135be8bd8cd60090298f02310691b688d95c3a8
tree719ab0daceaba03157024b587b205c4a57aa9ed9
parentd0234b2055b86919514381624d6ed6ec0686f241
x86/CPUID: correct error indicator for max extended leaf

With the max base leaf using 0, this one should be using the extended
leaf counterpart thereof, rather than some arbitrary extended leaf.

Fixes: 588a966a572e ("libx86: Introduce x86_cpu_policies_are_compatible()")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/cpu-policy/test-cpu-policy.c
xen/lib/x86/policy.c