[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Ping: [PATCH] x86/CPUID: move some static masks into .init
On 15.07.2020 09:45, Jan Beulich wrote: > Except for hvm_shadow_max_featuremask and deep_features they're > referenced by __init functions only. > > Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> > > --- a/xen/arch/x86/cpuid.c > +++ b/xen/arch/x86/cpuid.c > @@ -16,12 +16,15 @@ > const uint32_t known_features[] = INIT_KNOWN_FEATURES; > const uint32_t special_features[] = INIT_SPECIAL_FEATURES; > > -static const uint32_t pv_max_featuremask[] = INIT_PV_MAX_FEATURES; > +static const uint32_t __initconst pv_max_featuremask[] = > INIT_PV_MAX_FEATURES; > static const uint32_t hvm_shadow_max_featuremask[] = > INIT_HVM_SHADOW_MAX_FEATURES; > -static const uint32_t hvm_hap_max_featuremask[] = INIT_HVM_HAP_MAX_FEATURES; > -static const uint32_t pv_def_featuremask[] = INIT_PV_DEF_FEATURES; > -static const uint32_t hvm_shadow_def_featuremask[] = > INIT_HVM_SHADOW_DEF_FEATURES; > -static const uint32_t hvm_hap_def_featuremask[] = INIT_HVM_HAP_DEF_FEATURES; > +static const uint32_t __initconst hvm_hap_max_featuremask[] = > + INIT_HVM_HAP_MAX_FEATURES; > +static const uint32_t __initconst pv_def_featuremask[] = > INIT_PV_DEF_FEATURES; > +static const uint32_t __initconst hvm_shadow_def_featuremask[] = > + INIT_HVM_SHADOW_DEF_FEATURES; > +static const uint32_t __initconst hvm_hap_def_featuremask[] = > + INIT_HVM_HAP_DEF_FEATURES; > static const uint32_t deep_features[] = INIT_DEEP_FEATURES; > > static int __init parse_xen_cpuid(const char *s) >
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |