The function is about guest exposure of features / leaves. There's no need for it to be applied on the host policy. In fact doing so gets in the way of using the host policy in certain places.
Signed-off-by: Jan Beulich <[email protected]> --- a/xen/arch/x86/cpu-policy.c +++ b/xen/arch/x86/cpu-policy.c @@ -383,7 +383,6 @@ static void __init calculate_host_policy x86_cpu_featureset_to_policy(boot_cpu_data.x86_capability, p); recalculate_xstate(p); - recalculate_misc(p); /* When vPMU is disabled, drop it from the host policy. */ if ( vpmu_mode == XENPMU_MODE_OFF ) @@ -634,6 +633,7 @@ static void __init calculate_pv_max_poli unsigned int i; *p = host_cpu_policy; + recalculate_misc(p); guest_common_max_leaves(p); @@ -736,6 +736,7 @@ static void __init calculate_hvm_max_pol const uint32_t *mask; *p = host_cpu_policy; + recalculate_misc(p); guest_common_max_leaves(p);
