Received: by 10.223.185.116 with SMTP id b49csp42014wrg; Mon, 19 Feb 2018 16:14:49 -0800 (PST) X-Google-Smtp-Source: AH8x225ibt38OF4RR8lEU35EQyni8i7Mxy/I4pmLwp8M8dD9Q5m5U8ttXvhiIiA3lQjaAQ6G0Ud+ X-Received: by 2002:a17:902:6e4:: with SMTP id 91-v6mr15266544plh.26.1519085689126; Mon, 19 Feb 2018 16:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519085689; cv=none; d=google.com; s=arc-20160816; b=E2DseCTUqpD2yBw8LzeXWc4o0M6sssco0UzARhyAgjxWhGHRQgngY6iBOyHY9BSka2 nJVlO95gJkLsIstGiku6hRwbx2ADPvLFxRNeO8oTlXYiXaCqmktEhM5s6R9qEbdtwBxv 4ZHDlxLBdYVrLLRYuu2lpOVTT8J7ib7PWs0D2+ETXoKv0PGDOmbltZ0Ehz9HCmIO9VA3 r7OUzGTtjcUiisN9OZjrK023BCMGfU6Nx4fgjovIRxUCy5Tr+vWM7fZIBycni3WegUkC HVi/g9y0971b4QWm3P4fFlsebdnrz8yeBBrug/SRZLlPQQJurTVfb5BlW4QzsNtd36Vt FFOQ== 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=c/BKRNgY8zcwzp3hQyrNTSbYc+afun4cEt3Dnif6cGs=; b=z1ElIj1rmq17r0BBBRSYtsVQpcaqvZ/N15AJ+Tc4UbfKu1N3ueIMGhrHtEWJp5AD2u /FBtjPa50//Vas9HCkcSCEg2Zvc5SACyrotYl4kv/SpJKUxn4uZAZEqVYGxgUkYviEvk c0+qQmNQUbqbUMs66HR99vaAv5pgLg5zIQFjwnT2oqpOIBOMYmNQ/mJKmlx311VJzQar EhwoykUAOQmFsm4emu/sYQRL7Tnfp2yR35H6gYDfTZc06uH29fJyOeREt2FOt+k684B0 UEpXpaUgRfjYR7sE/hPLpk5hrj7oXIkh+A1U9+HJrj3Gtficx5HDgWMT5bURYqM5zg+1 GWug== 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 p13-v6si6137133plo.758.2018.02.19.16.14.33; Mon, 19 Feb 2018 16:14:49 -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 S932284AbeBTANo (ORCPT + 99 others); Mon, 19 Feb 2018 19:13:44 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:32980 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932237AbeBTANn (ORCPT ); Mon, 19 Feb 2018 19:13:43 -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 w1K0D2S1009947; Tue, 20 Feb 2018 00:13:02 GMT Date: Tue, 20 Feb 2018 00:13:01 +0000 From: Alan Cox To: "Van De Ven, Arjan" Cc: "valdis.kletnieks@vt.edu" , Jon Masters , David Woodhouse , Paolo Bonzini , "tglx@linutronix.de" , "x86@kernel.org" , "kvm@vger.kernel.org" , "torvalds@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "Hansen, Dave" , "Ingo Molnar" Subject: Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs Message-ID: <20180220001301.70101e1d@alans-desktop> In-Reply-To: <0575AF4FD06DD142AD198903C74E1CC87A619255@ORSMSX103.amr.corp.intel.com> References: <1518449255-2182-1-git-send-email-dwmw@amazon.co.uk> <1518449255-2182-2-git-send-email-dwmw@amazon.co.uk> <7e2e5ad1-49b6-1fdb-4a62-8ad6aefc30a0@redhat.com> <1518509708.12890.33.camel@infradead.org> <27c85759-e662-d281-f8a0-0a80ca8ee18f@redhat.com> <1518517262.12890.43.camel@infradead.org> <1518518198.12890.48.camel@infradead.org> <02bd3fdd-1b73-6cab-fb09-38ba933396bd@redhat.com> <1518775136.7876.13.camel@infradead.org> <75287047-77a0-e0ff-c2e8-61c81641251e@redhat.com> <1518776517.7876.21.camel@infradead.org> <1518783021.7876.34.camel@infradead.org> <4882860e-23c5-75b3-ac02-c700f615156e@jonmasters.org> <0575AF4FD06DD142AD198903C74E1CC87A61923C@ORSMSX103.amr.corp.intel.com> <10373.1519084385@turing-police.cc.vt.edu> <0575AF4FD06DD142AD198903C74E1CC87A619255@ORSMSX103.amr.corp.intel.com> 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 On Tue, 20 Feb 2018 00:00:23 +0000 "Van De Ven, Arjan" wrote: > > On Mon, 19 Feb 2018 23:42:24 +0000, "Van De Ven, Arjan" said: > > > > > the guest is not the problem; guests obviously will already honor if Enhanced > > > IBRS is enumerated. The problem is mixed migration pools where the > > hypervisor > > > may need to decide to not pass this enumeration through to the guest. > > > > For bonus points: What should happen to a VM that is live migrated from one > > hypervisor to another, and the hypervisors have different IBRS support? > > Doctor Doctor it hurts when I do this.... > > Migration tends to only work between HV's that are relatively homogeneous, that's nothing new... folks who run clouds or bigger pools know this obviously. In theory there's nothing stopping a guest getting a 'you are about to gain/lose IBRS' message or having a new 'CPU' hotplugged and the old one removed. It's just that it's always been less painful to avoid the problems you get with wild mismatches than attmept the cure. And any 'cure' goes beyond the OS kernel into some of the managed runtimes so I'd agree with Arjan 'don't do that'. Alan