]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm: Move l1tf setup function
authorThomas Gleixner <tglx@linutronix.de>
Fri, 13 Jul 2018 14:23:19 +0000 (16:23 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 13 Jul 2018 14:29:54 +0000 (16:29 +0200)
commit25b8b88bd7df13e65aba3cc2af969f1c4498fac9
tree6259a9d65a10ea1430568eb4e7e5bd1ecaabd408
parent446f5012d3f28b8c1ee690d85186966eeb5c1e59
x86/kvm: Move l1tf setup function

In preparation of allowing run time control for L1D flushing, move the
setup code to the module parameter handler.

In case of pre module init parsing, just store the value and let vmx_init()
do the actual setup after running kvm_init() so that enable_ept is having
the correct state.

During run-time invoke it directly from the parameter setter to prepare for
run-time control.

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.694063239@linutronix.de
arch/x86/kvm/vmx.c