Received: by 10.223.185.116 with SMTP id b49csp3457485wrg; Tue, 13 Feb 2018 02:42:56 -0800 (PST) X-Google-Smtp-Source: AH8x227r1/m9o0z/9+gf3pdGvyZQsyYNAq72evZ7AGEQ9CZNpznlOYNR0IeCocdCHOLnLjodAZ3N X-Received: by 2002:a17:902:8302:: with SMTP id bd2-v6mr693012plb.295.1518518576622; Tue, 13 Feb 2018 02:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518518576; cv=none; d=google.com; s=arc-20160816; b=NJ69loFe/hP/bmthAybkVGq1rIbGtk2MKTJAeNy0GM+i9Kpq5fI9/I0l+Sa/9grwdk fQJpIJOK8fW2brlLH1sp+WXEOCsxkCo7ptK8SUYj6KkBrvq1qmzemCFERw/5TfMR4U5Q +/fFmsOeIEB7mF+w2QhN3WjUtSreLQWAlsG8xJTtRp/gltNIPrzdnN6WtosJp0nfuz5X qyMqKXBsEBC9rl8FPpD5WymMxcHFI88kwtXcuowY2+RL/F5avw7lR6nd/Z4XgLNHQlzL Zowu7WFAlUcEqnFJH085riC3toPmJlm1Zmfye3OVEBAQktaL1tOgcf49hWFvJv+SFoTA miZQ== 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:to:subject:arc-authentication-results; bh=rQNq1h0Gonkh1bnTe1eaS1Y7kDgswj1tQte03A6QHAc=; b=gQdiCai67kw5e1ApTxEioF+ukf63bp/8LYSzhvryJXln1Zo15SguSfyYCeqMtX6+P0 c99wNgOVWx2Bkj+B+vW+bTQbdXy4dLlb50lsFtheyG7U0gNRWCXrVDg6IlOAhrY+bZlC kX4mdXGx6RAjvHW0NahhchpwnW/SC2QQ3has3RoGbTBA0VX7fs4RKmUXyjlmpedFBbv7 gV+EiQkX5bxIcmCgMhPSCmNHQkqto/QzkeqS0IicOq3tduitzbe0lbhQuvaYtgqDtnqr O4ltzSXV88pOSYQB9E3GVd2ZNX+SMIExtGNfOlxxxJjtBcAmInMWflVsmU74KorMqSv1 8BdQ== 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 j10-v6si1100074plg.400.2018.02.13.02.42.42; Tue, 13 Feb 2018 02:42:56 -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 S934358AbeBMKll (ORCPT + 99 others); Tue, 13 Feb 2018 05:41:41 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:52146 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934011AbeBMKli (ORCPT ); Tue, 13 Feb 2018 05:41:38 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 241E6EB6E0; Tue, 13 Feb 2018 10:41:38 +0000 (UTC) Received: from [10.36.116.223] (ovpn-116-223.ams2.redhat.com [10.36.116.223]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 972E22026DFD; Tue, 13 Feb 2018 10:41:36 +0000 (UTC) Subject: Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs To: David Woodhouse , tglx@linutronix.de, x86@kernel.org, kvm@vger.kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, arjan.van.de.ven@intel.com, dave.hansen@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> From: Paolo Bonzini Message-ID: <02bd3fdd-1b73-6cab-fb09-38ba933396bd@redhat.com> Date: Tue, 13 Feb 2018 11:41:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1518518198.12890.48.camel@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 13 Feb 2018 10:41:38 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 13 Feb 2018 10:41:38 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pbonzini@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/02/2018 11:36, David Woodhouse wrote: >>> - if the VM has IBRS_ALL, pass through the MSR when it is zero and >>> intercept writes when it is one (no writes should happen) >>>   >>> - if the VM doesn't have IBRS_ALL, do as we are doing now, independent >>> of what the host spectre_v2_ibrs_all() setting is. >> We end up having to turn IBRS on again on vmexit then, taking care that >> no conditional branch can go round it. So that becomes an >> *unconditional* wrmsr or lfence in the vmexit path. We really don't >> want that. > > Note that being able to keep it simple in KVM was basically what made > the difference between me tolerating IBRS_ALL as Intel currently define > it, and throwing my toys out of the pram (as I had done in the first > iterations of this patch). You have my vote. :) Really, IBRS_ALL makes no sense and it would be nice to know _why_ Intel is pushing something that makes no sense. Paolo