Received: by 10.223.176.5 with SMTP id f5csp389234wra; Tue, 30 Jan 2018 13:12:32 -0800 (PST) X-Google-Smtp-Source: AH8x224NklBCjqw9pKUChU4R4b5Rd3NDHDrgFApKNSNhQQ3RsrEWbSK4WYelMSifqn3LxWGN61ov X-Received: by 10.99.106.69 with SMTP id f66mr15686997pgc.283.1517346752319; Tue, 30 Jan 2018 13:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517346752; cv=none; d=google.com; s=arc-20160816; b=qiCLjR8yIp4MV2+us8ZYW/DucU/7UzljG9BUR0hUag5+eCGA0MVYAnv1cy0/JbtV1t 9OZWd/UGd6ON6G0khloJvSWtm+S+pHCWxsOv/JqEQ0FQ2bCRKUDFkDo8BkXJDANgR2W/ Yn9y5mt4FhwlRDncBidM7S6igZ4Z6BijLpup/o8lLPWQEVoJMKzM5+q2RCOzt6oQcRq0 LfWmvHnJJOGSGjLAVztdl+MQUUlKP7Vvml9to4aSYbTStYYbJfuzJip69pXzDZ8AcnCM Uf2kbt5HwMGGg7QGgXz5TDT9kkMk8YQB6Glg8v2ZsXicCPPIuKqdUKsTmZJ/fJkIf1kI skYw== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=BVNbPQ0qtdP+6+y1GYRythYqI6fZXNfHLxNcid/j2+c=; b=oNoEm8N+MrDDb5WU1oZLE8LHWGHwgHQB1ciIaF1LCfVYVbKKqHt1DoezJuuxooG4Wl VJpKBdDsLiV7sOvYjsHNCQNR8J9FYpQluiLlXVF3KAE22Ch8/tlHOsUXTiLujwMwltjV +pR/3JewrdeISD3Gfw1WdqkzxhdOBO+6sVKljUYT66KL036rAKkJkryHfgQ0uNJ+cNcY Ng07zQtRzxGwDFpuZDqZOLxF2jtly4v0X7vfkQT3W+rnwTdYXI6v/37W454Lue0TtAHM pQIphAE3UlbkBPeohJb1w8rz9ULs8y5lPsW8Cq7nL33ZoUgRaFUapiciy4IuTv9e0Hq4 7zPg== 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 n17si15178632pfj.302.2018.01.30.13.12.17; Tue, 30 Jan 2018 13:12:32 -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 S1751956AbeA3UrI (ORCPT + 99 others); Tue, 30 Jan 2018 15:47:08 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:37620 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbeA3UrG (ORCPT ); Tue, 30 Jan 2018 15:47:06 -0500 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w0UKkNWv009700; Tue, 30 Jan 2018 20:46:23 GMT Date: Tue, 30 Jan 2018 20:46:23 +0000 From: Alan Cox To: Linus Torvalds Cc: David Woodhouse , Arjan van de Ven , 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 , Radim =?UTF-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , KVM list , "the arch/x86 maintainers" , "Dr. David Alan Gilbert" Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure Message-ID: <20180130204623.583b1a7a@alans-desktop> In-Reply-To: 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> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > If you are ever going to migrate to Skylake, I think you should just > always tell the guests that you're running on Skylake. That way the > guests will always assume the worst case situation wrt Specte. Unfortunately if you do that then guest may also decide to use other Skylake hardware features and pop its clogs when it finds out its actually running on Westmere or SandyBridge. So you need to be able to both lie to the OS and user space via cpuid and also have a second 'but do skylake protections' that only mitigation aware software knows about. Alan