]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
x86/cpuid: Introduce missing feature adjustment in calculate_pv_def_policy()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 15 Jun 2020 12:42:11 +0000 (13:42 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 17 Jun 2020 12:54:12 +0000 (13:54 +0100)
This was an accidental asymmetry with the HVM side.

No change in behaviour at this point.

Fixes: 83b387382 ("x86/cpuid: Introduce and use default CPUID policies")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Paul Durrant <paul@xen.org>
xen/arch/x86/cpuid.c

index ee11087626c440c00d3b4dce490a0eadd3d951c1..f2fc0aa8954270ed897d1ea119f930d28ad91962 100644 (file)
@@ -402,6 +402,8 @@ static void __init calculate_pv_def_policy(void)
     for ( i = 0; i < ARRAY_SIZE(pv_featureset); ++i )
         pv_featureset[i] &= pv_def_featuremask[i];
 
+    guest_common_feature_adjustments(pv_featureset);
+
     sanitise_featureset(pv_featureset);
     cpuid_featureset_to_policy(pv_featureset, p);
     recalculate_xstate(p);