Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2080529ybt; Thu, 2 Jul 2020 23:45:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzivmNfLmm7tsrpIJe+zxScX1C64GBdUE4EBJ2GQ0r9k0O6W6ajCOFq7RacYOpOMujJX7SN X-Received: by 2002:a05:6402:543:: with SMTP id i3mr19315099edx.182.1593758708198; Thu, 02 Jul 2020 23:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593758708; cv=none; d=google.com; s=arc-20160816; b=vs/YQT8xzOLwfAoVoOhmcvVON8POjGNBYXERYjxJHOZRS1kwUtot5H01fJ8BywrpFD H57vCqyG88moFDthqSaTv7+X9lUxJcq9dOiep1J9LIOhREMJUXY7wg247i1TvSqDbCZp AJ8UGL1U6Ghd/ilutJ5sIguYAuCzP3108VQu+saAtcgs+DuroPvttGiCO+vP5RxWtaex tiq8Rvxf09x+OM0tkHjhGcR6Il4ptAe3Yzf/LXqyDbm/dekiLT8nosF0hjinmr8gZ0gF 0ok0DFMGhpS/XJy7OJBAVrVtir6k8lyrQBNj/td0w6/RSfhpB+pX6Y5mhcAzOp8FyFET Dwqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=odGB8TNyWCdqWFOvUPdduy/mDuwvatkITzLXwOy1S7Q=; b=Xcae/OXXspVvrzfiafPL0nqvxcRiZnXzBV0mU9OzlNY0LcUCkxhAREJpPuBDfticbT mDwE0zVp8dfBHztuoUctdGDtUcdWxvhExagcemVADTVKliG27XKmuikZgVmV0A0hIK2x bBVuVo0vJqfGK3AeGN4YhNDh/4lPbmOTwRCZOo93853+7BfowUFBehuwOIUOseyBv62w A0Kk4Z2wqgTkB2SFIx0GfCPX4FAn0IZH11PZpZeFKUfW9Jj1Cq+3Qh2lQ7yS2GDuqu4Y E9reY9eRU9EqxajY93NUl1Kl5te3tW+fMOizIhnNKrU1ANAarXP0ffqGTO5n2HDdOAgs xqlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kKUS7IMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si5441950edz.108.2020.07.02.23.44.45; Thu, 02 Jul 2020 23:45:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kKUS7IMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726417AbgGCGo0 (ORCPT + 99 others); Fri, 3 Jul 2020 02:44:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbgGCGoZ (ORCPT ); Fri, 3 Jul 2020 02:44:25 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B2F4C08C5DD for ; Thu, 2 Jul 2020 23:44:25 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id o5so31373035iow.8 for ; Thu, 02 Jul 2020 23:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=odGB8TNyWCdqWFOvUPdduy/mDuwvatkITzLXwOy1S7Q=; b=kKUS7IMNGJY2+SzWhECJRvZNNLG61zPX5yQWSTMsnOPMQh1wEqANmYx1X5IwvVjZDo LlF1J+5FtWC1ePNf1VvN8on1sudpcFECX9oPYqa9OdYuMACu26oR+JKAkC+IuIB5XyQm FC5/vvVnssevvXfbTwP6cEKK0n6Vi5kUl2Nms2ozUsiK3CT6mcYmkmD4hxcm6/N5SP5s wYYAaepu5Lo97ReO3dMVJJOa63tQMh/da8qLLsj77aRqN49f5IHWl6kgysAuRVOPU40Z CgbK1UV4X2sEjNbxzoFETpcyMT6Ey3pRY29i1VePvCaMRyr/evpln+3V1+AsxqlXZZTC MVow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=odGB8TNyWCdqWFOvUPdduy/mDuwvatkITzLXwOy1S7Q=; b=RS8vTmUp5GTfr006b5p4DRtqUvzZpV0L6STt8ClaKzZO6IOhEll+r4P9vmHGAXewce 9xvl5hlnY8xXu0C7jvnbnh6mxEQ/4RYfGgPoOAWARakSAE7bs8vSEHmIsexqxNefz0qE /r0it2BAyUKtWBnOwuYbNJzlXiEKJ2w5deC5MFWio9j4PwBdvq1WYYBcPnMdYgl8SLqb +lVURwkD62Q0Jcy59JggqvK5vKy5SjcTkmXfbi4v1v9oRpN7QeMz/zLvnxiJnFvtazob mURT4VBYHe6UVoB3iv+Skq1w9/t0gcuvH4E6Jt+PS7d22dj8xDJqA1oXWC2ZKqTRUcFR 9icw== X-Gm-Message-State: AOAM530Z91ochj6w78IDArF+VF6ig+9KxQwAsG2HXV5AyzIGIr+XsMTL gvqZQwgwwxbuCTzg1a3PJ+GE6vMEgGdCntxUmcD/4A== X-Received: by 2002:a05:6602:2dd4:: with SMTP id l20mr11019260iow.13.1593758664519; Thu, 02 Jul 2020 23:44:24 -0700 (PDT) MIME-Version: 1.0 References: <20200702221237.2517080-1-abhishekbh@google.com> In-Reply-To: From: Abhishek Bhardwaj Date: Thu, 2 Jul 2020 23:43:47 -0700 Message-ID: Subject: Re: [PATCH v3] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode To: Anthony Steinhauser Cc: LKML , Waiman Long , Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Jim Mattson , Joerg Roedel , Josh Poimboeuf , Mark Gross , Mike Rapoport , Paolo Bonzini , Pawan Gupta , Peter Zijlstra , Sean Christopherson , Thomas Gleixner , Tony Luck , Vitaly Kuznetsov , Wanpeng Li , kvm@vger.kernel.org, x86 , Doug Anderson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have tried to steer away from kernel command line args for a few reasons. I am paraphrasing my colleague Doug's argument here (CC'ed him as well) - - The command line args are getting unwieldy. Kernel command line parameters are not a scalable way to set kernel config. It's intended as a super limited way for the bootloader to pass info to the kernel and also as a way for end users who are not compiling the kernel themselves to tweak kernel behavior. - Also, we know we want this setting from the start. This is a definite smell that it deserves to be a compile time thing rather than adding extra code + whatever miniscule time at runtime to pass an extra arg. I think this was what CONFIGS were intended for. I'm happy to add all this to the commit message once it's approved in spirit by the maintainers. On Thu, Jul 2, 2020 at 8:18 PM Anthony Steinhauser wrote: > > Yes, this probably requires an explanation why the change is necessary > or useful. Without that it is difficult to give some meaningful > feedback. -- Abhishek