Received: by 10.223.176.5 with SMTP id f5csp2877756wra; Mon, 5 Feb 2018 11:26:26 -0800 (PST) X-Google-Smtp-Source: AH8x224/bYjyPzb/HHcbsyA++6foq/vdFlyppgFXTaAnz6ypGBJF2OsMHi2RDfZza7ol0LEOqaoR X-Received: by 10.101.87.195 with SMTP id q3mr38318167pgr.428.1517858786499; Mon, 05 Feb 2018 11:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517858786; cv=none; d=google.com; s=arc-20160816; b=KGFOoq73oyMIchN2ZBHaUXrovRHYfU/f8KNmgrthnEHQhMcMT4X///g5XaYpyyZYbp 4StOLZip1Qd0ROP95QGclFibVCEhBEd+0g3QUBeA5xp6Rd375ZxaQdxObN9bexKuPs+4 RMoNSFHrrmLtAUwHVUunP3ngshmz83ylZmdY3hZogWhsN70Sbvm6hE7ik436nQvY+ey5 5KKY9cR2+Wu06u94rgEYAgsDieQ8ui4UiUHls9aGrHYaH4zpgjzMP8Vg6e+ykYDB4Fjv q4RFRbLasdO/uzDJ8yj1W6a3xvHVrS08izbTzrphQgVC7XZ6cqQSYfE7j4W3PDZzfi0I jDPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=slUcPxs9SGGuvprJzyoFnEfz8ewZEqGOl9ZgOacpxlw=; b=HhvIItHRgS9t5kRBQEsKMSE1259AJokHinj1G3asT9v2DNMAbgTw+NQ54ApwuJmior gVLM2XXwydTK6w3QrGbGGlyDfEH7L9gTFDZ0zYv01jbjbA5Tcb7RoA4xqPKdCeepjd/C vkFoIJrofEazkp499HaxDLfYXbA5G2176tQPLUyTXU86OayIG505/0EjeAVal3kjxNUl 3KyVa7v78ZNrIV24UMg527O28ZG8GsnCCdyqdS5ZCVHUVmnR+Aq2hoH36Okj05epa4JX f3DG28AH/8rcS6UZX2G/9hMea0V7XTncWN/vgW+4N8Ju41X5JF/SCMf0aWAJq/wQrsKF BA8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si5826257pgq.199.2018.02.05.11.26.12; Mon, 05 Feb 2018 11:26:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751319AbeBETWw (ORCPT + 99 others); Mon, 5 Feb 2018 14:22:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32852 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeBETWo (ORCPT ); Mon, 5 Feb 2018 14:22:44 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E7C937E42A; Mon, 5 Feb 2018 19:22:43 +0000 (UTC) Received: from [10.36.116.201] (ovpn-116-201.ams2.redhat.com [10.36.116.201]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F140B4147; Mon, 5 Feb 2018 19:22:38 +0000 (UTC) Subject: Re: [PATCH v6 2/5] KVM: x86: Add IBPB support To: Alan Cox , Konrad Rzeszutek Wilk 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 , Peter Zijlstra 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> <20180202205258.2819b14f@alans-desktop> From: Paolo Bonzini Message-ID: <2030fb28-ca91-744d-52b3-5469b18e6f27@redhat.com> Date: Mon, 5 Feb 2018 20:22:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180202205258.2819b14f@alans-desktop> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 05 Feb 2018 19:22:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/02/2018 21:52, Alan Cox wrote: >>> 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. Leaves starting at 0 are reserved to Intel; leaves starting at 0x80000000 are reserved to AMD. 0x40000000 to 0x400000FF (some will say 0x4FFFFFFF) are reserved to hypervisors. > Now whether there ought to be an MSR range every vendor agrees is never > implemented so software can use it is an interesting discussion. For MSRs there is no explicit indication, but traditionally Intel is using numbers based at 0 and AMD is using numbers based at 0xC0000000. Furthermore, the manuals for virtualization extensions tell you that Intel isn't planning to go beyond 0x1FFF, and AMD is planning to use only 0xC0000000-0xC0001FFF and 0xC0010000-0xC0011FFF. Thanks, Paolo