kvm: svm: Ensure an IBPB on all affected CPUs when freeing a vmcb
authorJim Mattson <jmattson@google.com>
Tue, 22 May 2018 16:54:20 +0000 (09:54 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Nov 2018 11:50:42 +0000 (12:50 +0100)
commitfd65d3142f734bc4376053c8d75670041903134d
treecc54b20e91a008463389cb74b4e4dd02252ee29a
parent0e0fee5c539b61fdd098332e0e2cc375d9073706
kvm: svm: Ensure an IBPB on all affected CPUs when freeing a vmcb

Previously, we only called indirect_branch_prediction_barrier on the
logical CPU that freed a vmcb. This function should be called on all
logical CPUs that last loaded the vmcb in question.

Fixes: 15d45071523d ("KVM/x86: Add IBPB support")
Reported-by: Neel Natu <neelnatu@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c