]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/kvm: Move l1tf setup function
authorThomas Gleixner <tglx@linutronix.de>
Fri, 13 Jul 2018 14:23:19 +0000 (16:23 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 11 Aug 2018 00:44:43 +0000 (20:44 -0400)
commit4888ab6d6821330fbd901e09c958172213951c2a
tree88ce26cbd8763e5e86b84517dce172c35133335a
parente04f5b91baf8576494ab970f5719f3ce6c2d767f
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
Orabug: 28220625
CVE: CVE-2018-3646

(cherry picked from commit 7db92e165ac814487264632ab2624e832f20ae38)

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Conflicts:
arch/x86/kvm/vmx.c
Contextual: different content
arch/x86/kvm/vmx.c