All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: speck@linutronix.de
Subject: [MODERATED] Re: [patch V10 09/10] Control knobs and Documentation 9
Date: Thu, 12 Jul 2018 19:16:25 +0200	[thread overview]
Message-ID: <20180712171625.GA23735@kroah.com> (raw)
In-Reply-To: <20180712142957.709184145@linutronix.de>

On Thu, Jul 12, 2018 at 04:19:11PM +0200, speck for Thomas Gleixner wrote:
> From: Jiri Kosina <jkosina@suse.cz>
> Subject: [patch V10 09/10] x86/bugs, kvm: introduce boot-time control of L1TF mitigations
> 
> Introduce the 'l1tf=' kernel command line option to allow for boot-time
> switching of mitigation that is used on processors affected by L1TF.
> 
> The possible values are:
> 
>   full
> 	Provides all available mitigations for the L1TF vulnerability. Disables
> 	SMT and enables all mitigations in the hypervisors. SMT control via
> 	/sys/devices/system/cpu/smt/control is still possible after boot.
> 	Hypervisors will issue a warning when the first VM is started in
> 	a potentially insecure configuration, i.e. SMT enabled or L1D flush
> 	disabled.
> 
>   full,force
> 	Same as 'full', but disables SMT control. Implies the 'nosmt=force'
> 	command line option. sysfs control of SMT and the hypervisor flush
> 	control is disabled.
> 
>   flush
> 	Leaves SMT enabled and enables the conditional hypervisor mitigation.
> 	Hypervisors will issue a warning when the first VM is started in a
> 	potentially insecure configuration, i.e. SMT enabled or L1D flush
> 	disabled.
> 
>   flush,nosmt
> 	Disables SMT and enables the conditional hypervisor mitigation. SMT
> 	control via /sys/devices/system/cpu/smt/control is still possible
> 	after boot. If SMT is reenabled or flushing disabled at runtime
> 	hypervisors will issue a warning.
> 
>   flush,nowarn
> 	Same as 'flush', but hypervisors will not warn when
> 	a VM is started in a potentially insecure configuration.
> 
>   off
> 	Disables hypervisor mitigations and doesn't emit any warnings.
> 
> Default is 'flush'.
> 
> Let KVM adhere to these semantics, which means:
> 
>   - 'lt1f=full,force'	: Performe L1D flushes. No runtime control
>     			  possible.
> 
>   - 'l1tf=full'
>   - 'l1tf-flush'
>   - 'l1tf=flush,nosmt'	: Perform L1D flushes and warn on VM start if
> 			  SMT has been runtime enabled or L1D flushing
> 			  has been run-time enabled
> 			  
>   - 'l1tf=flush,nowarn'	: Perform L1D flushes and no warnings are emitted.
>   
>   - 'l1tf=off'		: L1D flushes are not performed and no warnings
> 			  are emitted.
> 
> KVM can always override the L1D flushing behavior using its 'vmentry_l1d_flush'
> module parameter except when lt1f=full,force is set.
> 
> This makes KVM's private 'nosmt' option redundant, and as it is a bit
> non-systematic anyway (this is something to control globally, not on
> hypervisor level), remove that option.
> 
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

  parent reply	other threads:[~2018-07-12 17:16 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-12 14:19 [patch V10 00/10] Control knobs and Documentation 0 Thomas Gleixner
2018-07-12 14:19 ` [patch V10 01/10] Control knobs and Documentation 1 Thomas Gleixner
2018-07-12 15:34   ` [MODERATED] " Greg KH
2018-07-12 15:38     ` Thomas Gleixner
2018-07-12 15:46       ` Thomas Gleixner
2018-07-12 17:08         ` [MODERATED] " Greg KH
2018-07-12 14:19 ` [patch V10 02/10] Control knobs and Documentation 2 Thomas Gleixner
2018-07-12 17:09   ` [MODERATED] " Greg KH
2018-07-12 14:19 ` [patch V10 03/10] Control knobs and Documentation 3 Thomas Gleixner
2018-07-12 16:13   ` [MODERATED] " Josh Poimboeuf
2018-07-13  9:10     ` Thomas Gleixner
2018-07-12 17:09   ` [MODERATED] " Greg KH
2018-07-12 14:19 ` [patch V10 04/10] Control knobs and Documentation 4 Thomas Gleixner
2018-07-12 17:10   ` [MODERATED] " Greg KH
2018-07-12 14:19 ` [patch V10 05/10] Control knobs and Documentation 5 Thomas Gleixner
2018-07-12 17:10   ` [MODERATED] " Greg KH
2018-07-12 14:19 ` [patch V10 06/10] Control knobs and Documentation 6 Thomas Gleixner
2018-07-12 16:14   ` [MODERATED] " Josh Poimboeuf
2018-07-12 17:10   ` Greg KH
2018-07-12 14:19 ` [patch V10 07/10] Control knobs and Documentation 7 Thomas Gleixner
2018-07-12 17:11   ` [MODERATED] " Greg KH
2018-07-12 14:19 ` [patch V10 08/10] Control knobs and Documentation 8 Thomas Gleixner
2018-07-12 16:22   ` [MODERATED] " Josh Poimboeuf
2018-07-12 17:12     ` Greg KH
2018-07-13  9:18     ` Thomas Gleixner
2018-07-12 17:17   ` [MODERATED] " Greg KH
2018-07-12 14:19 ` [patch V10 09/10] Control knobs and Documentation 9 Thomas Gleixner
2018-07-12 16:24   ` [MODERATED] " Josh Poimboeuf
2018-07-12 17:17     ` Greg KH
2018-07-12 17:16   ` Greg KH [this message]
2018-07-15  3:12   ` Kees Cook
2018-07-12 14:19 ` [patch V10 10/10] Control knobs and Documentation 10 Thomas Gleixner
2018-07-12 16:03   ` [MODERATED] " Linus Torvalds
2018-07-12 16:31     ` Peter Zijlstra
2018-07-12 16:13   ` Josh Poimboeuf
2018-07-12 16:26     ` Josh Poimboeuf
2018-07-13  9:09     ` Thomas Gleixner
2018-07-12 17:18   ` [MODERATED] " Greg KH
2018-07-15  7:30   ` Borislav Petkov
2018-07-27 16:41   ` Dave Hansen
2018-07-12 14:54 ` [patch V10 00/10] Control knobs and Documentation 0 Thomas Gleixner
2018-07-12 19:30 ` [MODERATED] " Josh Poimboeuf
2018-07-13 15:03   ` Thomas Gleixner
2018-07-13  8:30 ` [MODERATED] " Jiri Kosina
2018-07-13 16:22 ` Paolo Bonzini
2018-07-13 16:56   ` Andrew Cooper
2018-07-13 17:01     ` Paolo Bonzini
2018-07-13 17:28   ` Konrad Rzeszutek Wilk
2018-07-15 13:58     ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180712171625.GA23735@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=speck@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.