Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp823432ybt; Wed, 8 Jul 2020 12:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3HAq14eq2IDUCoJ/7qj3GDedCt2qqgRoTBjtrQRbttalntw5xsuEwGU0LVDECBp4aL9YM X-Received: by 2002:a17:906:a253:: with SMTP id bi19mr51313155ejb.338.1594236920868; Wed, 08 Jul 2020 12:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594236920; cv=none; d=google.com; s=arc-20160816; b=o69iDf8W+PHD/t94A+H+Rr5OQjw8QTbqeCweO8ovAsTuXFK40uqsXSW/MW49C3Q0Fq RA/J/Kr9K6rJTbx4huxVIoa597oRbbNcjWPBXdBSSrGxsYay+8iQ+XjbKw3ZsSQSGSA/ Y0tBZwI+QYwvnj0rOMaiF3Y/JsNDDIDdcKgDbnupO+U1DUCIPYZ/I14yaXbWyFlWI3xx ijWySjwOnP5lVuS+/5+DnALD96xX04ANXCjCq35IK4WzPnQoWHd9rBdibbngYjCReVSV gQ2H+6sexMrvoSwvbK1dtdMR+CnnkRX4oRV0yrKbgVn6C9iKsbeRanoI2S9ZDozA0zUL SdqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ykqc4FtVhosQ5cT56AO4CSaf12VShBEd2EeO9VFWJck=; b=gOQ5wq4SmNohUQHoD13FUjWJTZeDW5a8XBuhF9+hSUnC56vcMOBYutza2YKnso0fP9 84g6CEpkvXxP2MWipgrUWyu0KMU+PV6K+nnRCdm9ur4n9EWFAgbw7VQEX2MCbFkCVUjh 4kZs5QCMCmf6eQXENWkqLQwUvDm93AYbZFEHlqLkt9RpESdbmNYCrTZpMNl8WZ2ud50s ltaAW99IfLp7CciCN33Nc5v6is2X2LdtZKsc1BdXs4uqUso0iWqh7oOr4vI7H+JODDjY 3JA4u3TybFnkXR2eNQxlcUal6ExI1EvWCC71avldBAapTh1ntdDW1/ms/uwhv4ROHZyQ ieOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=d1QHdFcm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si594724edw.95.2020.07.08.12.34.58; Wed, 08 Jul 2020 12:35:20 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=d1QHdFcm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbgGHTec (ORCPT + 99 others); Wed, 8 Jul 2020 15:34:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbgGHTe3 (ORCPT ); Wed, 8 Jul 2020 15:34:29 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1E1AC061A0B; Wed, 8 Jul 2020 12:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=ykqc4FtVhosQ5cT56AO4CSaf12VShBEd2EeO9VFWJck=; b=d1QHdFcmXFBD/KiHmya6++Y2LQ O1J2Ji+Cn6nmDYDKi8i6rjaNa3en/nvJyCpHdpO0fsmFMAxsYVX8j9ntnSCLsY1OdZFsreisiHAbH fo3C/+N01j+ETDL0DAjEJaefVvteJjo0CG8tKDCELKC5EOm0DqWPh7zkTGBAwI0lDvkl9YEMCcBb8 dj/UMpEOXvVRI60INXSsRmmvlrK3WX57oa8zehiCIdQhdN5e6K9xvjJNDHCGokxQ/ykxIKCytOfqo ozQfZ4wQuWLuZew6ufsfD+bkoZuiytb7UEgXTeoAyjzE8hQxHtSTCTKdBAGP/eA1+H0LX0Hugu9O2 o6o78CvA==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtFpb-0001LA-05; Wed, 08 Jul 2020 19:34:11 +0000 Subject: Re: [PATCH v4] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode To: Abhishek Bhardwaj , LKML Cc: Anthony Steinhauser , 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 , Waiman Long , Wanpeng Li , kvm@vger.kernel.org, x86@kernel.org References: <20200708192546.4068026-1-abhishekbh@google.com> From: Randy Dunlap Message-ID: <06f15327-f346-fb8d-cc8e-8e12c398324d@infradead.org> Date: Wed, 8 Jul 2020 12:34:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200708192546.4068026-1-abhishekbh@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi again, On 7/8/20 12:25 PM, Abhishek Bhardwaj wrote: > diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig > index b277a2db62676..1f85374a0b812 100644 > --- a/arch/x86/kvm/Kconfig > +++ b/arch/x86/kvm/Kconfig > @@ -107,4 +107,17 @@ config KVM_MMU_AUDIT > This option adds a R/W kVM module parameter 'mmu_audit', which allows > auditing of KVM MMU events at runtime. > > +config KVM_VMENTRY_L1D_FLUSH > + int "L1D cache flush settings (1-3)" > + range 1 3 > + default "2" > + depends on KVM && X86_64 > + help > + This setting determines the L1D cache flush behavior before a VMENTER. > + This is similar to setting the option / parameter to > + kvm-intel.vmentry_l1d_flush. > + 1 - Never flush. > + 2 - Conditionally flush. > + 3 - Always flush. > + > endif # VIRTUALIZATION If you do a v5, the help text lines (under "help") should be indented with one tab + 2 spaces according to Documentation/process/coding-style.rst. -- ~Randy