Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2181279imm; Thu, 7 Jun 2018 06:44:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKt9w26gQ24pThFQSS6UcaUVmUJyV2EzXxBtNRmw/+v6B05zu/IDPRB/H6MLo9sYLxJifwX X-Received: by 2002:a17:902:3281:: with SMTP id z1-v6mr2106487plb.226.1528379066228; Thu, 07 Jun 2018 06:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528379066; cv=none; d=google.com; s=arc-20160816; b=UKWsRwBaop5ZhvuoKRtMr5z3xErEvtagGMmcnWvWKGVKtL2zgTAuEXICUm+rck9AJP fGUAjK0zJiMjFtY+BgG115xqfo0LPdzV9YP294DnPJxO0MPbXjO6+svRmfJwh7rFIFF8 FRU2KmNnKyl/k/AJ90mPpu4B7NEB9UrZMUrIrqM6147lMrvBtmWT+muOTwR1tB3h+jaX XpFDp7Xl3gvEoRBDHCwz2wIMso23uunw7BCKQDSi1SXqK5qoRGkvYK/NThhO/rd/lRt9 aXfSe5/MYjTALaD9o2l0iWYgoSBM1TPvVE9BJNLFm9KVmYK6uRGnO7PmWO1Fn/lUTx9p jzQA== 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:arc-authentication-results; bh=uUv0Q0XN1s+qEE6ixYL7XjUvvK2nVE3k7F7YYVCL4kQ=; b=ZZIg1pmptIK9oS2PEQK83zfObYO3eZvHx0usfQhXbWUkDlnUjkAk9tMwTz8PwoHR2b WK3grQNQtoMM55JmF/vXe3DmhfhqNho9pIpIZLOr17tiaSapB9N5xtyVlW12e8YMT5tz vBJE81o8zASmEHOptJ7Jl6ukCumiQ2znCRoL1YQMNPT91cVbtFiZ4olr93qO01W8jlWS opRXH62sHa7uYQTmnM/ZYpRhUqIKRoZqheZI6DqTN0e2pWfUOHOeIwTD0JpqBHiHWDg7 mMwrkVwmzwSMpYW6v06a3MxmTsEUuFowHZRG0ICj1vXQu9wGrplRd7asAdfraSmqQq/t fywg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18-v6si6599410pgv.388.2018.06.07.06.44.12; Thu, 07 Jun 2018 06:44:26 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753429AbeFGNlB (ORCPT + 99 others); Thu, 7 Jun 2018 09:41:01 -0400 Received: from mga12.intel.com ([192.55.52.136]:20613 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753047AbeFGNlA (ORCPT ); Thu, 7 Jun 2018 09:41:00 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jun 2018 06:40:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,486,1520924400"; d="scan'208";a="47193419" Received: from um.fi.intel.com (HELO um) ([10.237.72.212]) by orsmga007.jf.intel.com with ESMTP; 07 Jun 2018 06:40:54 -0700 Received: from ash by um with local (Exim 4.91) (envelope-from ) id 1fQv9n-0004U3-Ko; Thu, 07 Jun 2018 16:40:51 +0300 Date: Thu, 7 Jun 2018 16:40:51 +0300 From: Alexander Shishkin To: Luwei Kang Cc: kvm@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, chao.p.peng@linux.intel.com, thomas.lendacky@amd.com, bp@suse.de, Kan.liang@intel.com, Janakarajan.Natarajan@amd.com, dwmw@amazon.co.uk, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, peterz@infradead.org, mathieu.poirier@linaro.org, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, pbonzini@redhat.com, rkrcmar@redhat.com, david@redhat.com, bsd@redhat.com, yu.c.zhang@linux.intel.com, joro@8bytes.org Subject: Re: [PATCH v9 04/12] perf/x86/intel/pt: add new capability for Intel PT Message-ID: <20180607134051.rwu5pqtz45cgq7ve@um.fi.intel.com> References: <1526964735-16566-1-git-send-email-luwei.kang@intel.com> <1526964735-16566-5-git-send-email-luwei.kang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526964735-16566-5-git-send-email-luwei.kang@intel.com> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 12:52:07PM +0800, Luwei Kang wrote: > CPUID(EAX=14H,ECX=0):EBX[bit 3] = 1 indicates support of > output to Trace Transport subsystem. > MSR IA32_RTIT_CTL.FabricEn[bit 6] is reserved if > CPUID.(EAX=14H, ECX=0):ECX[bit 3] = 0. This should instead say: This adds support for "output to Trace Transport subsystem" capability of Intel PT, as documented in IA SDM Chapter 36.x.y.z. It means that PT can output its trace to an MMIO address range rather than system memory buffer. > This is use for emulate IA32_RTIT_CTL MSR read/write > in KVM. KVM guest write IA32_RTIT_CTL will trap to > root mode and a #GP would be injected to guest if set > IA32_RTIT_CTL.FabricEn with > CPUID.(EAX=14H, ECX=0):ECX[bit 3] = 0. I'm not sure what this means, this patch has nothing to do with KVM as far as I can tell. Aside from the commit message, this is a valid patch. Thanks, -- Alex