Received: by 10.223.176.5 with SMTP id f5csp4209910wra; Tue, 30 Jan 2018 03:57:10 -0800 (PST) X-Google-Smtp-Source: AH8x227NiXYjrfMDifNQ9VhpRMPfxX8Vwe+mkfmjhqbbLcMVFTr8by763nFkpv67jLHrEeUN94Wa X-Received: by 10.99.67.197 with SMTP id q188mr23152708pga.255.1517313429912; Tue, 30 Jan 2018 03:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517313429; cv=none; d=google.com; s=arc-20160816; b=jn4WoLdQb1rDXPCx6sf61ArSUdbWcYe+f4L1UMkg7lXfHoFr/laYBo/AnSRc8ulCX3 AItLbnnplbvu0O1vRvpNgEkWEFeyjqHVAGveq80pXGR5FTQO2t5i2lSBzIQFjEB0KDGy HwgvaqOvUuhD++8aBm3wM/lr1FlbOH3+mky8QO1ZC6bmG5IeKLQA1jEHPUVZNLryPo57 76A9u3Nut9CmV8ZBDzXxF4q0uH8aRK/NDYmAf4UTnYAiQhtehzplcF5VWq1EBUps5gYt Bp6Fbk/u0vMoxafi0I6ZRRghXSxyyBKj9vKrVh0o4MDtGsOCWKc37RcGmpp9vXAfW0Qx 89rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=n9nWzTQyS20f03G8wIxZKXB0B1cn4X4ifkKVviUa/sE=; b=LpYvbsKhntL3+Nx1ubCSGAR9BsdT2C1+oYXvIrZcAxLT5OeKXzaIEe6zwzatlt+wLk bcadIaOQPMEckC7JQ/DmAUQfM5gZisrHWmiRuh1NRaHKvAVuAI//tiHa3ieEbGAwQjCs 48Kxaz1bCy7kg3fndwGXexNoDBLAP9W5ExeleJ5ezk3Fu3AkjWnvF1bO6yo/otdlNJpU cGEcyRn2Nd/r9Rv7yaMnjR/OOS1HL6W4TAlIWzJ3FD1+APKQOinMSnewVV+a3K5eSmQW /vXnoC6OCNbMapZvEdOAx3GPIzDStFFd9+h++gSxOO60Ct86X/WBUSE0MMCl5XkXt75V rF9w== 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 z8si1733009pgs.605.2018.01.30.03.56.55; Tue, 30 Jan 2018 03:57:09 -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 S1751719AbeA3L4T (ORCPT + 99 others); Tue, 30 Jan 2018 06:56:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54772 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751651AbeA3L4S (ORCPT ); Tue, 30 Jan 2018 06:56:18 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B130CC0587E1; Tue, 30 Jan 2018 11:56:17 +0000 (UTC) Received: from work-vm (ovpn-117-187.ams2.redhat.com [10.36.117.187]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B93D65D75D; Tue, 30 Jan 2018 11:56:11 +0000 (UTC) Date: Tue, 30 Jan 2018 11:56:09 +0000 From: "Dr. David Alan Gilbert" 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 Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure Message-ID: <20180130115608.GA2537@work-vm> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 30 Jan 2018 11:56:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Linus Torvalds (torvalds@linux-foundation.org) 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? > > So I'm a bit mystified by some of this discussion within the context > of virtual machines. I think that is separate from any measures that > the guest machine may then decide to partake in. Because you'd never want to be the cause of the guest making the wrong decision and thus being less secure than it was on real hardware. > 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. Say you've got a pile of Ivybridge, all running lots of VMs, the guests see that they're running on Ivybridge. Now you need some more hosts, so you buy the latest Skylake boxes, and add them into your cluster. Previously it was fine to live migrate a VM to the Skylake box and the VM still sees it's running Ivybridge; and you can migrate that VM back and forward. The rule was that as long as the CPU type you told the guest was old enough then it could migrate to any newer box. You can't tell the VMs running on Ivybridge they're running on Skylake otherwise they'll start trying to use Skylake features (OK, they should be checking flags, but that's a separate story). Dave > Maybe that mystification comes from me missing something. > > Linus -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK