From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: [PATCH v6 2/5] KVM: x86: Add IBPB support Date: Fri, 2 Feb 2018 20:52:58 +0000 Message-ID: <20180202205258.2819b14f@alans-desktop> References: <1517522386-18410-1-git-send-email-karahmed@amazon.de> <1517522386-18410-3-git-send-email-karahmed@amazon.de> <20180202174932.GR28192@char.us.oracle.com> <1517594544.31953.62.camel@infradead.org> <20180202195601.GD28192@char.us.oracle.com> <1517602575.31953.74.camel@infradead.org> <20180202202857.GI28192@char.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: David Woodhouse , KarimAllah Ahmed , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, 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 , Paolo Bonzini , Peter Zijlstra To: Konrad Rzeszutek Wilk Return-path: Received: from www.llwyncelyn.cymru ([82.70.14.225]:36914 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbeBBUxt (ORCPT ); Fri, 2 Feb 2018 15:53:49 -0500 In-Reply-To: <20180202202857.GI28192@char.us.oracle.com> Sender: kvm-owner@vger.kernel.org List-ID: > > No. The AMD feature bits give us more fine-grained support for exposing > > IBPB or IBRS alone, so we expose those bits on Intel too. > > But but.. that runs smack against the idea of exposing a platform that > is as close to emulating the real hardware as possible. Agreed, and it's asking for problems in the future if for example Intel or another non AMD vendor did ever use that leaf for something different. Now whether there ought to be an MSR range every vendor agrees is never implemented so software can use it is an interesting discussion. Alan