]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Fix IBRS handling after vmexit
authorJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 3 Oct 2022 13:10:30 +0000 (10:10 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2022 07:16:56 +0000 (09:16 +0200)
commit9ebc583342c6425f6412b30d5d71c3e58714649e
tree8350027baf35f6a6d02e617d0a5415e8a2b77066
parent96b8c9a57bec985092a7b63a07c1998acc554b0f
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