Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10810059ybi; Thu, 11 Jul 2019 11:21:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzheXxa+SFerL9UFbSvlVWVpqRfp0m92h7EW4N4+/OTNAOE4Pxe8+X5N0DMjWlzSEy8m9Iw X-Received: by 2002:a17:90a:ca0f:: with SMTP id x15mr6226090pjt.82.1562869314136; Thu, 11 Jul 2019 11:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562869314; cv=none; d=google.com; s=arc-20160816; b=Yvn97NvVrCGpgsWgfmfgxFCshbITG38fHj6EKZlP2AHWu7wUBEz2zF8DJel1yByX8/ KQ9RVhLlzKnBYmZgHEomb6lFrKKlzlcaZk5grDnabX/LCZdUwRVyN3AjjyQDRrB8iZQN NiZnZ8H9yxlHrUwLjqddPyfvOUC330m+1Ow2A3c6N9M8kI/LVZMN5SHB4Ri9KLpbKjbA UG0rwGdHReJuCKPpad0CyRc2V3KfWDpME+4vCHkVk57NJdTpu6L68CHK3ZykSXVOMcV2 MpDIzNFkaVfJa+v5OK4KKX+QdLIZvxY49NFEuKWhAFScUVmwIpvv+KDoNT+Ytg+YNBh/ Nkfw== 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; bh=k+ypwomAADq23nbm3nt/4V6KQIrDD3ezxbrtOcqI+Sg=; b=07NMEWC9XpyBCHYZ9MXOA4lbnphLXNVOUHkxVVcWH3HQ7p4nCwAyG7oSz4Z7bJzB3H 0YGpWmVXA8ujjAT9M/4cZ+wdz7dOtSvt8sQKxxb3CWbV6PBs+vEpYbGP0FYXKv6GsyNK LDLflnN1/g/oqA8ZTLOznbEUsUPO3caweSFAGRtmWjHldeHLUKLdFcgW2wF4a64R4gq/ OdRsGVzdJCDHDUZNY2FiGkTwc0/jWs/1ZOpdFg9VCYDFbXmMUO2mWGGX1qcBDEBXJ44C Wgh/jHo1gXC22GkxEqj9CIvjLUjETjV3w0IVPaCQfDaWO6hJD0aScxsuYBbmGJyx01yF g/Ew== 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 z5si5433438plo.434.2019.07.11.11.21.38; Thu, 11 Jul 2019 11:21:54 -0700 (PDT) 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 S1728747AbfGKRpO (ORCPT + 99 others); Thu, 11 Jul 2019 13:45:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45050 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728479AbfGKRpN (ORCPT ); Thu, 11 Jul 2019 13:45:13 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 647DE5D5E6; Thu, 11 Jul 2019 17:45:13 +0000 (UTC) Received: from treble (ovpn-122-237.rdu2.redhat.com [10.10.122.237]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E7C82600CD; Thu, 11 Jul 2019 17:45:10 +0000 (UTC) Date: Thu, 11 Jul 2019 12:45:07 -0500 From: Josh Poimboeuf To: Thomas Gleixner Cc: Paolo Bonzini , "Lendacky, Thomas" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Andrew Cooper , Pu Wen , Borislav Petkov Subject: Re: [RFC PATCH] x86: Remove X86_FEATURE_MFENCE_RDTSC Message-ID: <20190711174507.wrwfxohzutfsgbgl@treble> References: <45f247d2-80f5-6c8c-d11e-965a3da8a88f@amd.com> <4a13c6a3-a13e-d3e5-0008-41a6d47a6eff@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 11 Jul 2019 17:45:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 10, 2019 at 01:33:48PM +0200, Thomas Gleixner wrote: > On Wed, 10 Jul 2019, Paolo Bonzini wrote: > > On 08/07/19 21:32, Lendacky, Thomas wrote: > > >> AMD and Intel both have serializing lfence (X86_FEATURE_LFENCE_RDTSC). > > >> They've both had it for a long time, and AMD has had it enabled in Linux > > >> since Spectre v1 was announced. > > >> > > >> Back then, there was a proposal to remove the serializing mfence feature > > >> bit (X86_FEATURE_MFENCE_RDTSC), since both AMD and Intel have > > >> serializing lfence. At the time, it was (ahem) speculated that some > > >> hypervisors might not yet support its removal, so it remained for the > > >> time being. > > >> > > >> Now a year-and-a-half later, it should be safe to remove. > > > > > > I vaguely remember a concern from a migration point of view, maybe? Adding > > > Paolo to see if he has any concerns. > > > > It would be a problem to remove the conditional "if > > (boot_cpu_has(X86_FEATURE_LFENCE_RDTSC))" from svm_get_msr_feature. But > > removing support for X86_FEATURE_MFENCE_RDTSC essentially amounts to > > removing support for hypervisors that haven't been updated pre-Spectre. > > That's fair enough, I think. > > Yes, they have other more interesting problems :) Great. Anyone care to give an ACK? :-) -- Josh