KVM: x86: Unpack F() CPUID feature flag macros to one flag per line of code
authorSean Christopherson <seanjc@google.com>
Thu, 28 Nov 2024 01:33:49 +0000 (17:33 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 18 Dec 2024 22:19:45 +0000 (14:19 -0800)
commitccf93de484a33f8fe943734f3eed0f05004a48e9
tree6a132ca69630b8bd6294e8b88e00be9d4cfd6d3b
parent96cbc766baf05daf5dbcfd17c605d821f10170be
KVM: x86: Unpack F() CPUID feature flag macros to one flag per line of code

Refactor kvm_set_cpu_caps() to express each supported (or not) feature
flag on a separate line, modulo a handful of cases where KVM does not, and
likely will not, support a sequence of flags.  This will allow adding
fancier macros with longer, more descriptive names without resulting in
absurd line lengths and/or weird code.  Isolating each flag also makes it
far easier to review changes, reduces code conflicts, and generally makes
it easier to resolve conflicts.  Lastly, it allows co-locating comments
for notable flags, e.g. MONITOR, precisely with the relevant flag.

No functional change intended.

Suggested-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20241128013424.4096668-23-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c