]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/svm: Set IBPB when running a different VCPU
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Nov 2017 14:00:14 +0000 (15:00 +0100)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:19:57 +0000 (10:19 -0800)
commitc590b7a7acd34e7c6a29ac345801fcf470ddabd9
tree8f634b55a03d38daf53ca3bb491d2997d0c2f68d
parent60f856955c1bd20a01116887dbc0918843c4fa5c
x86/svm: Set IBPB when running a different VCPU

[RHEL7.5 PATCH 09/35] x86/svm: Set IBPB when running a different VCPU

Set IBPB (Indirect Branch Prediction Barrier) when the current CPU is
going to run a VCPU different from what was previously run.  Nested
virtualization uses the same VMCB for the second level guest, but the
L1 hypervisor should be using IBRS to protect itself.

Orabug: 27344012
CVE: CVE-2017-5715

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: John Haxby <john.haxby@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
arch/x86/kvm/svm.c