Received: by 10.223.185.116 with SMTP id b49csp15355wrg; Mon, 19 Feb 2018 15:38:52 -0800 (PST) X-Google-Smtp-Source: AH8x224FO+lIuZpLp4Eo+8fVYqnlWlwaOCzeN5lPWN9lnS8Q4kNPsfhKlfyLahh1R9S97bRiNZYI X-Received: by 10.98.72.10 with SMTP id v10mr16170651pfa.128.1519083532699; Mon, 19 Feb 2018 15:38:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519083532; cv=none; d=google.com; s=arc-20160816; b=I1KTRe0dKyi4HgHisK2ziXJwp9OPsDEhRH8Rq97gfe9os5f9Cpo6aXA2deOeO94kIi fVOYwEd/f0rJfTpTmFmM164bHMbTO44Oj8VW5XnZgiQ8r1/Wdt3d062BsN3vY6NNVzRB 1MO983GdGrsp4jrrvh+VNPc3lO9fcxvUBJbk7UhpxTqO8Y7fq5uEqzpRUdFW74VBURfK 9GGkPNS7KpOtqQcAttuDDKUD3awPS8aQzt599NsdaLi14aSMhm/d4qvzqVMyzGS+obyJ fieH7aDmnXmX8eBR/P/UvDm8/fGS16L1JcDKhxDg4xbJlzoNemF3Pe1uK9WPgFy0t6j/ 7F0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to :arc-authentication-results; bh=MiAld63udZrvUAhXF8GsR6i2idlxVHVKWY6ykJFywT4=; b=BjXJEzZtO8FZncfMZxEbqNjwVXVIm6lGnASN6/+du+gs2EJdKfoQWy8Mjs5siK/qQ3 XkYTXjoxR4vrWnP5EiUKUWeZxax8dyIi7NWf9+SoQc7FF9rKxJ0B0yiinNvaZo1RjWw1 4qSKT/4QjmVe51llkAbaXMPbcVpPRbH3xikxwtf8L7/5iyWcA6NL/QlBfn0LZRgwoJyy ROparN3ZHgelYewvns/3jPKM9Xy01v7GS8UZ5uZvqOOye7qqFFEP73mSEy51yQarmh7G J/Tk1Axmlv1eW92FJ3WF30vAqMshjv7nBjdLjWeDRenTa9OUbOnl/G2xz9M7A7HUG5UH qrmA== 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 t85si439343pfj.296.2018.02.19.15.38.38; Mon, 19 Feb 2018 15:38:52 -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 S932280AbeBSXh6 (ORCPT + 99 others); Mon, 19 Feb 2018 18:37:58 -0500 Received: from edison.jonmasters.org ([173.255.233.168]:59916 "EHLO edison.jonmasters.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932222AbeBSXh5 (ORCPT ); Mon, 19 Feb 2018 18:37:57 -0500 Received: from [82.111.139.164] (helo=washington.bos.jonmasters.org) by edison.jonmasters.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1env0K-0006wx-IT; Mon, 19 Feb 2018 23:37:52 +0000 To: David Woodhouse , Paolo Bonzini , 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 Cc: Ingo Molnar 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> From: Jon Masters Organization: World Organi{s,z}ation Of Broken Dreams Message-ID: <4882860e-23c5-75b3-ac02-c700f615156e@jonmasters.org> Date: Mon, 19 Feb 2018 18:37:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1518783021.7876.34.camel@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 82.111.139.164 X-SA-Exim-Mail-From: jcm@jonmasters.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on edison.jonmasters.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Subject: Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs X-SA-Exim-Version: 4.2.1 (built Sun, 08 Nov 2009 07:31:22 +0000) X-SA-Exim-Scanned: Yes (on edison.jonmasters.org) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/16/2018 07:10 AM, David Woodhouse wrote: > On Fri, 2018-02-16 at 12:04 +0100, Paolo Bonzini wrote: >> On 16/02/2018 11:21, David Woodhouse wrote: >>> Even if the guest doesn't have/support IBRS_ALL, and is frobbing the >>> (now emulated) MSR on every kernel entry/exit, that's *still* going to >>> be a metric shitload faster than what it *thought* it was doing. Is there any indication/log to the admin that VM doesn't know about IBRS_ALL and is constantly uselessly writing to an emulated MSR? While it's probably true that the overhead in time is similar to (or better than) an actual IBRS MSR write, if the admin/user knows the VM needs updating, then there's a fighting chance that they might do so. Jon.