Re: [PATCH v4] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode

From: Abhishek Bhardwaj
Date: Wed Jul 08 2020 - 15:49:59 EST


On Wed, Jul 8, 2020 at 12:34 PM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> 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.

Apologies for missing this. Fixed in v5 -
https://lkml.org/lkml/2020/7/8/1369

>
> --
> ~Randy
>


--
Abhishek