From: Paolo Bonzini Subject: Re: [PATCH v6 2/5] KVM: x86: Add IBPB support Date: Thu, 3 May 2018 11:19:51 +0200 Message-ID: <9c228512-33b8-0df6-0c3e-4d30140d6579@redhat.com> References: <1517522386-18410-1-git-send-email-karahmed@amazon.de> <1517522386-18410-3-git-send-email-karahmed@amazon.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm , LKML , the arch/x86 maintainers , Ashok Raj , Asit Mallick , Dave Hansen , Arjan Van De Ven , Tim Chen , Linus Torvalds , Andrea Arcangeli , Andi Kleen , Thomas Gleixner , Dan Williams , Jun Nakajima , Andy Lutomirski , Greg KH , Peter Zijlstra , David Woodhouse To: Wanpeng Li , KarimAllah Ahmed Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 03/05/2018 03:27, Wanpeng Li wrote: > So for 1) guest->guest attacks 2) guest/ring3->host/ring3 attacks 3) > guest/ring0->host/ring0 attacks, if IBPB is enough to protect these > three scenarios and retpoline is not needed? In theory yes, in practice if you want to do that IBPB is much more expensive than retpolines, because you'd need an IBPB on vmexit or a cache flush on vmentry. Paolo