diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2018-07-13 10:23:22 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-07-13 10:29:55 -0400 |
commit | 895ae47f9918833c3a880fbccd41e0692b37e7d9 (patch) | |
tree | 499a54cef162352efcf0668be9d37a7eb1360a1b /kernel/cpu.c | |
parent | dd4bfa739a72508b75760b393d129ed7b431daab (diff) |
x86/kvm: Allow runtime control of L1D flush
All mitigation modes can be switched at run time with a static key now:
- Use sysfs_streq() instead of strcmp() to handle the trailing new line
from sysfs writes correctly.
- Make the static key management handle multiple invocations properly.
- Set the module parameter file to RW
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20180713142322.954525119@linutronix.de
Diffstat (limited to 'kernel/cpu.c')
0 files changed, 0 insertions, 0 deletions