]> Git Repo - linux.git/commit
x86: KVM: Add common feature flag for AMD's PSFD
authorSean Christopherson <[email protected]>
Tue, 24 Jan 2023 19:45:19 +0000 (19:45 +0000)
committerSean Christopherson <[email protected]>
Thu, 23 Mar 2023 23:07:29 +0000 (16:07 -0700)
commit3d8f61bf8bcd69bcd397276d53aa18f7ca8347f9
treef230abf23beab37a7a3cd4736e6aa33f11e34d5f
parent68f7c82ab1b8c7057b0c241907ff7906c7407e6d
x86: KVM: Add common feature flag for AMD's PSFD

Use a common X86_FEATURE_* flag for AMD's PSFD, and suppress it from
/proc/cpuinfo via the standard method of an empty string instead of
hacking in a one-off "private" #define in KVM.  The request that led to
KVM defining its own flag was really just that the feature not show up
in /proc/cpuinfo, and additional patches+discussions in the interim have
clarified that defining flags in cpufeatures.h purely so that KVM can
advertise features to userspace is ok so long as the kernel already uses
a word to track the associated CPUID leaf.

No functional change intended.

Link: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/all/Y3O7UYWfOLfJkwM%[email protected]
Reviewed-by: Paolo Bonzini <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
arch/x86/include/asm/cpufeatures.h
arch/x86/kvm/cpuid.c
This page took 0.05015 seconds and 4 git commands to generate.