Received: by 10.223.176.5 with SMTP id f5csp3679748wra; Mon, 29 Jan 2018 17:32:50 -0800 (PST) X-Google-Smtp-Source: AH8x227Mj/twrfOqqrfYEN0EmtlqUIiwIgVNDdzfg7YNFioYVCZ3Pwj5yI7qcI0jNFwEE1r0AotB X-Received: by 10.101.98.85 with SMTP id q21mr11112791pgv.298.1517275970255; Mon, 29 Jan 2018 17:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517275970; cv=none; d=google.com; s=arc-20160816; b=fDjZrhkk+9wFOBpDvFGT06EBKVB0GeZr+UfH0/jFmjGluRAVPyzemiaK2JOYA9I+FO VQMZMFWrwkyTIUzFaeZ2Md03ZeeFjmFuTlLJTJHwSV71Pm5KLx5RcjDDlBHo/M7QwGqi 5KqArijZjNlB4zT9m898CnbsEBIzTuga5z9fSjlMhALIow+bi6K8B2CrhHmTMby9bAm5 n5LQRDIxheOa/RfhYbrDBFBzqsweFN36tdtKiLkFhFOJoGvSk8/8LI6QGkU35eRr4NBZ Ia+xDqw2j2kQ1HQqd4DM+damOByF6o0pwZrf1upOzNrjvWKzYdVhij0Of9bgFpcgvkrE PjgA== 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=inwzYWD15TxLhjIlvQ4ABb+GBdc7DYdXC/ZCKOy3Azk=; b=G6QaMnl2cqGWsNDe9eCxAZ5VtGHBasnNGWafWkJASGELCqNjN9bHYeGoDpFEzUFX2Y V/bVFcbakQY9oMET8A4PMEzzej1ytY9Beh5e2Tj9BWLN3VxuyLA8l6zCDxW38PP30tUp IcRlDPp+R1l2tdQ4UCqrxHNsNo3pRqlUI5c5bm8XO/w2s8Qu+GhnotQ0f3vJuV4irABR UUHtG5E08dIq/36ES7spv5kRJljsr6kfArBif3AFc/I6Rf8E0TbpVyAmuMtfqOOMw/u1 IlWKmAOD0A8meKD0sZaXUOI9rsKgz323XrFpKn7LZxlovMzT0Vj2SIFRcZ1ZPCnQg56e dDog== 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 p8-v6si728909plk.192.2018.01.29.17.32.35; Mon, 29 Jan 2018 17:32:50 -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 S1752412AbeA3BcK (ORCPT + 99 others); Mon, 29 Jan 2018 20:32:10 -0500 Received: from mga04.intel.com ([192.55.52.120]:51161 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbeA3BcI (ORCPT ); Mon, 29 Jan 2018 20:32:08 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jan 2018 17:32:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,433,1511856000"; d="scan'208";a="30480052" Received: from avandeve-mobl.amr.corp.intel.com (HELO [10.252.141.77]) ([10.252.141.77]) by orsmga002.jf.intel.com with ESMTP; 29 Jan 2018 17:32:05 -0800 Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure To: Linus Torvalds , David Woodhouse Cc: Eduardo Habkost , KarimAllah Ahmed , Linux Kernel Mailing List , 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 , Masami Hiramatsu , Paolo Bonzini , Peter Zijlstra , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , KVM list , the arch/x86 maintainers , "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> <31415b7f-9c76-c102-86cd-6bf4e23e3aee@linux.intel.com> <1517259759.18619.38.camel@infradead.org> From: Arjan van de Ven Message-ID: <6c024f95-b12c-9c66-91d7-208ed2c380ff@linux.intel.com> Date: Mon, 29 Jan 2018 17:32:05 -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: 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 4:23 PM, Linus Torvalds wrote: > > Why do you even _care_ about the guest, and how it acts wrt Skylake? > What you should care about is not so much the guests (which do their > own thing) but protect guests from each other, no? the most simple solution is that we set the internal feature bit in Linux to turn on the "stuff the RSB" workaround is we're on a SKL *or* as a guest in a VM. The stuffing is not free, but it's also not insane either... so if it's turned on in guests, the impact is still limited, while bare metal doesn't need it at all