Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6063410pxv; Thu, 29 Jul 2021 05:42:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3e6rnYOlgs4q6AgCXI5UZexoUFISPC2lrXEUyi+DI0aryPIy/KfDk5mrVP1oTeNbn6Hup X-Received: by 2002:a50:d70a:: with SMTP id t10mr5741339edi.253.1627562521304; Thu, 29 Jul 2021 05:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627562521; cv=none; d=google.com; s=arc-20160816; b=ZEE2YAQjuoYyAbOGDfmmAGI2DFTSFzdwA++AlWdT7kkfYUSjKa5hZEDBgfUYhsTiVK eGVreOqLAQFEzoSL00S9lHnoH787+AV1FdFnhupdYjex01ZZIkglZwhkxhQ76oez3Myp +A+4HleUEH3LGy6YRbT4WMPwTK5OnZTqJivS/YYJYvlxllAy7IMsu62ztoHqn37SS8Sf Jd/aKNR6RrzB5RijfluJ4kCaqxbOt1vueV+w+E1zZzT0TybWLDTsiipYMD/pxFgik1f7 q6enQnDMCm77idtCQ5HQ6HD5tPEvoapSzTy0qfj6QKJ6YY1zVcU9ysHhwpoRIU6VVZI7 wy2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:subject:references :to; bh=e4mgDJkhS9Q4LyihsA6rzSQRCDLpNXY/OezTGd8I18U=; b=GJH1NcybngXS/Pm9L/bLxD+8UGwgRn2uQ25vPaWh2rWrM2pr9CmcIhhxA1iRbqQrOW FkuQ0HMF5suV9E8614kOOdsZpq1/w6Kw+Fvx5LK4jlpt22GKoGPTxHmjSO3N1BUa3UDe ViRoBjiNNiGtzvXlE2uwv1QiMPtQsDo9/uDPY2Hi0LNDyXPpoWWqWkHuC/F3iS5bAtim TF7Q55fAnjpQXKaXKJeuLnmavXKPT5ihiCSAOTOqKYdvJnwll0YRjTrFNcSVamC/f6YB yjab3l2o15S17UB7AzDYHHQ28udR66aMSaSfzvQ+L8U0jlgbPVja3yio/iWXrkCApEFX hx2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si2542835edc.520.2021.07.29.05.41.36; Thu, 29 Jul 2021 05:42:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237035AbhG2MkQ (ORCPT + 99 others); Thu, 29 Jul 2021 08:40:16 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:13210 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234459AbhG2MkN (ORCPT ); Thu, 29 Jul 2021 08:40:13 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Gb92931qTz1CNdJ; Thu, 29 Jul 2021 20:34:09 +0800 (CST) Received: from dggpeml500013.china.huawei.com (7.185.36.41) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 29 Jul 2021 20:40:06 +0800 Received: from [10.174.187.161] (10.174.187.161) by dggpeml500013.china.huawei.com (7.185.36.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 29 Jul 2021 20:40:05 +0800 To: References: <20210201051039.255478-1-like.xu@linux.intel.com> Subject: Re: [PATCH v14 00/11] KVM: x86/pmu: Guest Last Branch Recording Enabling CC: , , , , , , , , , , , , , "Fangyi (Eric)" , Xiexiangyou From: Liuxiangdong Message-ID: <6102A1A5.90901@huawei.com> Date: Thu, 29 Jul 2021 20:40:05 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20210201051039.255478-1-like.xu@linux.intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.187.161] X-ClientProxiedBy: dggeme710-chm.china.huawei.com (10.1.199.106) To dggpeml500013.china.huawei.com (7.185.36.41) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, like. This patch set has been merged in 5.12 kernel tree so we can use LBR in Guest. Does it have requirement on CPU? I can use lbr in guest on skylake and icelake, but cannot on IvyBridge. I can see lbr formats(000011b) in perf_capabilities msr(0x345), but there is still error when I try. $ perf record -b Error: cycles: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat' Host CPU: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 46 bits physical, 48 bits virtual CPU(s): 24 On-line CPU(s) list: 0-23 Thread(s) per core: 2 Core(s) per socket: 6 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 62 Model name: Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz Stepping: 4 Thanks! Xiangdong Liu