Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1088098imm; Wed, 6 Jun 2018 10:13:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKyGdtPqDR1yNg/NrUgpPeB9+Wnro9Qt1RHKi2zvcI3GZ12YmGohzqDE/CpZ8EPW413S8xc X-Received: by 2002:a62:bca:: with SMTP id 71-v6mr3238838pfl.234.1528305199117; Wed, 06 Jun 2018 10:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528305199; cv=none; d=google.com; s=arc-20160816; b=boHoJKvMHVoo9Zk6wX8NthHVyY0D7zvden0aY5mJoZn71rXDBK76ZC+MNcFDOP/W5X byxCYocxr/m4bd7p3WrXBwp5jICJdYDZU3jgHkBIg/cQfbZedDHehXhs1DN/HeuzNXih mfymKYpnoGx7uc1PfzgJWx1o9Ep3IJ8gRyFwwYTm9HfMtx8rVF1xxdDYddoG0QENLeyz vKV2ZzgmYkiersX5vJqmDpA+mALicqvIBdTCFGcKPP8gbEFxlAXoMd6DKinll1whYoM1 0a3CpKXaHz6eO6y1AUBZwNkjvRfOzEvaFgPG9VMC2Y9AiO+QS0bsFRZRjLP4KM2/XsEP RZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=5y/ylaq2D3kE0mHNhF8pOhjldYqN+NCs3YFSEdOWnJg=; b=QSPGORDtKEe54yX+JXiihjc1CFFYcIxFnqX7GwP2JeP5VTlrk99GKCi+WsjCesEiwc phkM1ycbfDMQn9Crr/IfvqUSQHQU95QnShwG1WEwwc+341tCCDvtqGb+hellRs5QC8m/ 1j/3ShoCnRPdXAc0PeW06yZ98yy8vXdiimpHYDpIH3I0rf7Eav+xT8TEeyRs5NnSNKye E1foAhl0joQOqPvupe9mHKQ8uLB9LdLVYZ58OlhkusX9X8bH/SFwL3JHM9B3Q6C83usH u8lc5xKTQ881xNahSqYeC6YnUTJy9/eV3XfaLh44xVsN8GMJW3aTTXYubtDXHJ3CqiEZ wN1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ri6unn1B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z70-v6si11945640pfi.7.2018.06.06.10.13.04; Wed, 06 Jun 2018 10:13:19 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Ri6unn1B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933688AbeFFRLV (ORCPT + 99 others); Wed, 6 Jun 2018 13:11:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:48040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933527AbeFFRLU (ORCPT ); Wed, 6 Jun 2018 13:11:20 -0400 Received: from mail-wr0-f171.google.com (mail-wr0-f171.google.com [209.85.128.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8AD0A2086E for ; Wed, 6 Jun 2018 17:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528305079; bh=vNh0b1OKDzEIABn/zxMIWefIEqlk8FUz6oitvdjpMyg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ri6unn1BrUs+n/v2YOlOB4Lo/kDYV3z2fa5yra6e0YbWZJJm1+9GUmfLK2X02VjSY JwVSn8MNFhe+PBBbR8vbJP1P+sjznOM42YW888d8ERqvSCOplBxWgQ5OGUEk6t6L0F JqhSF6jd1Q99jyVcR+voCDyNzMmJ3s93Y/UWJU1U= Received: by mail-wr0-f171.google.com with SMTP id 94-v6so7091603wrf.5 for ; Wed, 06 Jun 2018 10:11:19 -0700 (PDT) X-Gm-Message-State: APt69E2u8Qauq9X8Wd6sQvQEs75gZKDXG/XVGiF4lg0vUpRMpojOVDCU bm4P+6ZDf3e9XtyChsCZ/y8dB5+KiaOTbR162X8hyQ== X-Received: by 2002:adf:b1ca:: with SMTP id r10-v6mr2815196wra.221.1528305078097; Wed, 06 Jun 2018 10:11:18 -0700 (PDT) MIME-Version: 1.0 References: <1528302199-29619-1-git-send-email-chang.seok.bae@intel.com> <1528302199-29619-6-git-send-email-chang.seok.bae@intel.com> In-Reply-To: <1528302199-29619-6-git-send-email-chang.seok.bae@intel.com> From: Andy Lutomirski Date: Wed, 6 Jun 2018 10:11:06 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/8] x86/msr: write_rdtscp_aux() to use wrmsr_safe() To: "Bae, Chang Seok" Cc: Andrew Lutomirski , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Andi Kleen , Dave Hansen , "Metzger, Markus T" , "Ravi V. Shankar" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 6, 2018 at 9:23 AM Chang S. Bae wrote: > > Using wrmsr_safe() can make code a bit simpler by removing > some condition check NAK. If we really want to stop checking the cpu feature and unconditionally write the MSR, then there should be a single patch that does it. If we don't, then we should not make this change, since it will make the very useful warning if we screwed it up go away. I think we should continue checking the cpu feature, personally. I also thing that, if we make the change, it should not be part of the FSGSBASE series.