Received: by 10.223.176.5 with SMTP id f5csp3409403wra; Mon, 29 Jan 2018 12:46:13 -0800 (PST) X-Google-Smtp-Source: AH8x227uMbeSTAfizsuVIqqUiHHFQH+98RHAzJeq3RT+DlSJkYdg4byVaVa/lKo1GKQiwYf2YNyO X-Received: by 10.98.60.132 with SMTP id b4mr28189482pfk.120.1517258773386; Mon, 29 Jan 2018 12:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517258773; cv=none; d=google.com; s=arc-20160816; b=KSEptzsxxBJQLGMwtHHn8XLQJykeneB5Twzf6qVTBA9Km2l/mCRkApWSwO4rWqd7pk Q9O6ITCnfahQoVDLTeipFErEgNi28K542rtec1ygTqVyX74Kx8/7gfzwRN/B1cPGhVdV KoktCI00iJHaNP3fCscr6zdHhKHyC5wVq3IYBGhjwR2aHB+pxpdc52rXCjLAAnF4kQvF yfIZtgyaJ36ZnGbNSMitehmPr0v2DTuR/CihvXG6ha0EqnkWMn3dyvvQUnfcnQD5/nsi TwRzfObVaUaLeMSs4oRC6xqLTQdM5DAIorn0H6/aAto6g0FzhnGunxx2I9yKm5OhJEdf ag2Q== 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=g012n4IFkEd3GnhE3P5jiwaDu2FZOIlCIin7bUN5hwA=; b=tl9wMAy5WEfMipwH1eStoAQA7ykAj7HMTgifYrDPlDGZ5L/Dj4m5ZRvFN/vAiQnih8 keweFteu8W/9iL7cnsdF6xbOMG6v+6vKeyvMYvbT0tFTBJAyzHWXKla0so1tNyXBSk6/ KLBQENQhNdGPGPxwWo5OfIAUOp9JMrTcIJNBDB8T7xrO2uIiRCD9rpglwycjS2ERqrsk EnQkUlqnWq6x30YK1chPaTN6y5UZm4RcBDn2NVBfJJTBQYvosrV95Uvh6k41z24bZX60 D/ZFGSgKkN4pNVRnp0dB+rRvPo3GM78T5MF/x6uYK1rF2CAIiOvPGqIW3roHQLwjldZr aS/A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q74si12717807pfk.164.2018.01.29.12.45.58; Mon, 29 Jan 2018 12:46:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754190AbeA2UoW (ORCPT + 99 others); Mon, 29 Jan 2018 15:44:22 -0500 Received: from mga04.intel.com ([192.55.52.120]:36039 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753943AbeA2UoT (ORCPT ); Mon, 29 Jan 2018 15:44:19 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jan 2018 12:44:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,432,1511856000"; d="scan'208";a="199595591" Received: from avandeve-mobl.amr.corp.intel.com (HELO [10.24.10.55]) ([10.24.10.55]) by fmsmga005.fm.intel.com with ESMTP; 29 Jan 2018 12:44:17 -0800 Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure To: Eduardo Habkost , David Woodhouse Cc: KarimAllah Ahmed , linux-kernel@vger.kernel.org, Andi Kleen , Andrea Arcangeli , Andy Lutomirski , Ashok Raj , Asit Mallick , Borislav Petkov , Dan Williams , Dave Hansen , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Janakarajan Natarajan , Joerg Roedel , Jun Nakajima , Laura Abbott , Linus Torvalds , Masami Hiramatsu , Paolo Bonzini , Peter Zijlstra , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , kvm@vger.kernel.org, x86@kernel.org, "Dr. David Alan Gilbert" References: <1516476182-5153-6-git-send-email-karahmed@amazon.de> <20180129201404.GA1588@localhost.localdomain> <1517257022.18619.30.camel@infradead.org> <20180129204256.GV25150@localhost.localdomain> From: Arjan van de Ven Message-ID: <31415b7f-9c76-c102-86cd-6bf4e23e3aee@linux.intel.com> Date: Mon, 29 Jan 2018 12:44:16 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180129204256.GV25150@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/29/2018 12:42 PM, Eduardo Habkost wrote: > The question is how the hypervisor could tell that to the guest. > If Intel doesn't give us a CPUID bit that can be used to tell > that retpolines are enough, maybe we should use a hypervisor > CPUID bit for that? the objective is to have retpoline be safe everywhere and never use IBRS (Linus was also pretty clear about that) so I'm confused by your question