Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6466748ybf; Thu, 5 Mar 2020 21:38:05 -0800 (PST) X-Google-Smtp-Source: ADFU+vsXRNWWwzFATpUhlPZ1N9w2QmKmhpnCC7KiSKPjL2yiNkfI5U7bQ9S2Zu1mZOOspiVLgvLV X-Received: by 2002:a05:6830:1f18:: with SMTP id u24mr1094799otg.99.1583473085450; Thu, 05 Mar 2020 21:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583473085; cv=none; d=google.com; s=arc-20160816; b=L9KgLaE2jgAfgr7Ue6fapGg84GMpS2pv5vVO37zW8Pl3gfCInT3kcvBLr0njCJqCTN HmCyBp/OSBDAoko1vGaTu2pjeg+RBBJWR87o4EalV/neoaq+b1YOvbUmY+v1DQMieqaZ HeTuzBv98LRC9C3ZjSkfa3w0qnDgX7wJfDGpUvzsoVtOdea30pvkGcp3hI3ymc+fLHch iZ6gNxwY8EuTrTkYRAkcjMN3d4eOah4w3F+7kFHifEXolcoFaJYC7d1ds4SQefsZWZiX jT0gmWKfx224Z9zFNPdLyI5VPm7+t0fLtSxc89ND2P1pTu6wSBC4lhgx8iT7DAnK+WRb 3uGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=7nP9JBl4hFT6kWW5pETp7/GFCW6v5u7lxvYr+Nf/Rn0=; b=CnccSxRfyX3PGnQDbBYRsB315BrK6isaZa4cbBH486JkEase1+psJpKQbJchaiah1F OyZMi2QrxpXjVLvdBJFrwFWOuN6yq803Eaz3048OZxJ2Be6RQxeYpTAKMRaqPvJanre3 uHZmmrYwB3ADoanpXYPi1U2Py3EPxZDmCc2/NEzaarV9PboZONS2ASsTrZlHTZfaO9V3 l8tle6GxgC/GmkGk6LEh/T+IPvU6AAjA5cGC+8IdEwDQUIjYM3QtdLhzYJyAGIc2W4Kd gNXhCOHPCAJ2eDXbDE1KP8QV39TL50K736xaA6Q0qGN3bRMIWDrsd/8pVpJlx69OIQcB RyRg== 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 s127si761076oih.191.2020.03.05.21.37.53; Thu, 05 Mar 2020 21:38:05 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726002AbgCFFhU convert rfc822-to-8bit (ORCPT + 99 others); Fri, 6 Mar 2020 00:37:20 -0500 Received: from mga09.intel.com ([134.134.136.24]:59903 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbgCFFhU (ORCPT ); Fri, 6 Mar 2020 00:37:20 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2020 21:37:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,520,1574150400"; d="scan'208";a="264349775" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 05 Mar 2020 21:37:18 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 5 Mar 2020 21:37:18 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.206]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.86]) with mapi id 14.03.0439.000; Fri, 6 Mar 2020 13:37:16 +0800 From: "Kang, Luwei" To: Andi Kleen CC: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "peterz@infradead.org" , "mingo@redhat.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "jolsa@redhat.com" , "namhyung@kernel.org" , "tglx@linutronix.de" , "bp@alien8.de" , "hpa@zytor.com" , "pbonzini@redhat.com" , "Christopherson, Sean J" , "vkuznets@redhat.com" , "wanpengli@tencent.com" , "jmattson@google.com" , "joro@8bytes.org" , "pawan.kumar.gupta@linux.intel.com" , "thomas.lendacky@amd.com" , "Yu, Fenghua" , "kan.liang@linux.intel.com" , "like.xu@linux.intel.com" Subject: RE: [PATCH v1 00/11] PEBS virtualization enabling via DS Thread-Topic: [PATCH v1 00/11] PEBS virtualization enabling via DS Thread-Index: AQHV8tSwrTDGup6zbUucqvSF6td/Fqg6FLYAgAD03DA= Date: Fri, 6 Mar 2020 05:37:15 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E17389190B@SHSMSX104.ccr.corp.intel.com> References: <1583431025-19802-1-git-send-email-luwei.kang@intel.com> <20200305224852.GE1454533@tassilo.jf.intel.com> In-Reply-To: <20200305224852.GE1454533@tassilo.jf.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [PATCH v1 00/11] PEBS virtualization enabling via DS > > > Testing: > > The guest can use PEBS feature like native. e.g. > > Could you please add example qemu command lines too? That will make it > much easier for someone to reproduce. I introduce a new CPU parameter "pebs" to enable PEBS in KVM guest(disabled in default) e.g. "qemu-system-x86_64 -enable-kvm -M q35 -cpu Icelake-Server,pmu=true,pebs=true ...." [PATCH v1 0/3] PEBS virtualization enabling via DS in Qemu https://lore.kernel.org/qemu-devel/1583490005-27761-1-git-send-email-luwei.kang@intel.com/ Thanks, Luwei Kang > > -Andi > > > > # perf record -e instructions:ppp ./br_instr a > > > > perf report on guest: > > # Samples: 2K of event 'instructions:ppp', # Event count (approx.): > 1473377250 > > # Overhead Command Shared Object Symbol > > 57.74% br_instr br_instr [.] lfsr_cond > > 41.40% br_instr br_instr [.] cmp_end > > 0.21% br_instr [kernel.kallsyms] [k] __lock_acquire > > > > perf report on host: > > # Samples: 2K of event 'instructions:ppp', # Event count (approx.): > 1462721386 > > # Overhead Command Shared Object Symbol > > 57.90% br_instr br_instr [.] lfsr_cond > > 41.95% br_instr br_instr [.] cmp_end > > 0.05% br_instr [kernel.vmlinux] [k] lock_acquire