Re: [RFC PATCH] cpu/bugs: Disable CPU mitigations at compilation time

From: Breno Leitao
Date: Fri Feb 03 2023 - 07:05:03 EST


On 02/02/2023 21:44, Pawan Gupta wrote:
> On Thu, Feb 02, 2023 at 10:08:58AM -0800, Breno Leitao wrote:
>> Right now it is not possible to disable CPU vulnerabilities mitigations
>> at build time. Mitigation needs to be disabled passing kernel
>> parameters, such as 'mitigations=off'.
>>
>> This patch creates an easy way to disable mitigation during compilation
>
> s/This patch creates/Create/

Thanks for the review!

I am more curious if creating a new CONFIG option would be an acceptable
approach, and it seems so. I will send a non-RFC patch soon.