Skip to content

Commit 9b2776c

Browse files
committed
KVM: x86: Rename "SF" macro to "SCATTERED_F"
Now that each feature flag is on its own line, i.e. brevity isn't a major concern, drop the "SF" acronym and use the (almost) full name, SCATTERED_F. No functional change intended. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 3fd55b5 commit 9b2776c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/x86/kvm/cpuid.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ do { \
721721
})
722722

723723
/* Scattered Flag - For features that are scattered by cpufeatures.h. */
724-
#define SF(name) \
724+
#define SCATTERED_F(name) \
725725
({ \
726726
BUILD_BUG_ON(X86_FEATURE_##name >= MAX_CPU_FEATURES); \
727727
KVM_VALIDATE_CPU_CAP_USAGE(name); \
@@ -987,9 +987,9 @@ void kvm_set_cpu_caps(void)
987987
);
988988

989989
kvm_cpu_cap_init(CPUID_12_EAX,
990-
SF(SGX1) |
991-
SF(SGX2) |
992-
SF(SGX_EDECCSSA)
990+
SCATTERED_F(SGX1) |
991+
SCATTERED_F(SGX2) |
992+
SCATTERED_F(SGX_EDECCSSA)
993993
);
994994

995995
kvm_cpu_cap_init(CPUID_24_0_EBX,
@@ -1056,7 +1056,7 @@ void kvm_set_cpu_caps(void)
10561056
kvm_cpu_cap_set(X86_FEATURE_GBPAGES);
10571057

10581058
kvm_cpu_cap_init(CPUID_8000_0007_EDX,
1059-
SF(CONSTANT_TSC)
1059+
SCATTERED_F(CONSTANT_TSC)
10601060
);
10611061

10621062
kvm_cpu_cap_init(CPUID_8000_0008_EBX,
@@ -1177,7 +1177,7 @@ void kvm_set_cpu_caps(void)
11771177
EXPORT_SYMBOL_GPL(kvm_set_cpu_caps);
11781178

11791179
#undef F
1180-
#undef SF
1180+
#undef SCATTERED_F
11811181
#undef X86_64_F
11821182
#undef EMULATED_F
11831183
#undef SYNTHESIZED_F

0 commit comments

Comments
 (0)