]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Fix IBRS handling after vmexit
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Jun 2022 21:16:14 +0000 (23:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jul 2022 10:54:08 +0000 (12:54 +0200)
commit7d239f2ebeb9f7ef3fd9305de99a111a716ccd8b
tree0ef5c0df481d0e06f012d234ea7b781de2b46bb4
parent0b423fdd44eba1e1f01965d3b45b31c2097ae272
KVM: VMX: Fix IBRS handling after vmexit

commit e148b6d13173ceec343eba2cab7ac81f920f5a1e upstream.

For legacy IBRS to work, the IBRS bit needs to be always re-written
after vmexit, even if it's already on.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/vmx.c