|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/cpu-policy: move invocation of recalculate_misc()
commit f6894fdfa83359d0686a41aee5c2a8ba7b2878b4
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Nov 20 11:26:25 2025 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Nov 20 11:26:25 2025 +0100
x86/cpu-policy: move invocation of recalculate_misc()
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 <jbeulich@xxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/arch/x86/cpu-policy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xen/arch/x86/cpu-policy.c b/xen/arch/x86/cpu-policy.c
index 42dccdce52..0a7ef15f72 100644
--- a/xen/arch/x86/cpu-policy.c
+++ b/xen/arch/x86/cpu-policy.c
@@ -383,7 +383,6 @@ static void __init calculate_host_policy(void)
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_policy(void)
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_policy(void)
const uint32_t *mask;
*p = host_cpu_policy;
+ recalculate_misc(p);
guest_common_max_leaves(p);
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |