Re: [PATCH] KVM: x86: Expose Predictive Store Forwarding Disable

From: Paolo Bonzini
Date: Wed Aug 24 2022 - 13:14:01 EST


On 8/23/22 23:26, Jim Mattson wrote:
For consistency, should this feature be renamed AMD_PSFD, now that
Intel is enumerating PSFD with CPUID.(EAX=7,ECX=2):EDX.PSFD[bit 0]?
Seehttps://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/cpuid-enumeration-and-architectural-msrs.html.

And, Paolo, why are we carrying X86_FEATURE_PSFD as a private #define
in KVM rather than putting it where it belongs in cpufeatures.h?


Borislav asked to not show psfd in /proc/cpuinfo, because Linux had
decided not to control PSF separately; instead it just piggybacked
on SSBD which should disable PSF as well. Honestly I disagree but
it's not my area of maintenance.

Paolo