Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4106634pxf; Tue, 6 Apr 2021 08:05:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr0AHgIzS0cgC8zLduALpbJjNg+lD6N7FuXYRW5obpFBtYOnVC2ncMbLpg5ayAFx0O2EwB X-Received: by 2002:a17:906:f953:: with SMTP id ld19mr33316307ejb.164.1617721519703; Tue, 06 Apr 2021 08:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721519; cv=none; d=google.com; s=arc-20160816; b=PS++0542OqPZ7+eOUgfi6vluTYZcYX2H7vuy1T4+Kek8elbbvLsCce5Izdb93wdGCh +eeAhfrsHUVe6lXFrScZgr1OsdmGBHHhlomyERdXqaChW7AsMTFlRZmWjtA9nuRcXNDo ET/KQUeQDQb9xtv4HbRM+Fsid3Jx7/Na3KSjY4SBGFHqMMaB4uou+BIV4hTArVRRFd4e zW1v4iFHZIh0iDCdoBEwfS8s5wJ+v68mA+sgKwzjEvix1hMCUNswPhSlIYu6eWPmzfzR w8P5qd3OU5iNPcMrleCx3tQOVc0eZ0fn7lY7s/r3lyrXyY3CWw2Evr0kfUSQbvfRRinN d8FQ== 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=gHFO6+XuepxXu5/2OEtkgEkj6/zWfiSv+NiWgXWaWOc=; b=qCxHAQRitKiDVKJZePOZtg2u/yI+TWUNN2WvthP/sAQr587W9VqfZSFXLXVmVbSQYT jl2ERB4e7c0bhw7K8GxG3S5L+dDc18vj8hVejUUgEjvZmg40hQvRuYun5X0CatC7ObSO zYZhtR/NLlPlx6hDBXGfzMQaikXqsrVNP3VZEtM2W3cz2R4hqHkfZroua6MHgs/BTAJP zd/vjZ1ZlRCFhbuOK0dPAm4bh6NttQiR0ha6hz6tPmDiwCgck7sJzy4fYLsCV1gDPe2O E/Ivd9Gh0df6kut9dIVthvgTbuu6SLFzOjG1zHg4oPySBTz3L3lyR3xMbWobpbBBvi0v Ezow== 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 a10si497577ejv.104.2021.04.06.08.04.48; Tue, 06 Apr 2021 08:05:19 -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 S242334AbhDFDZA (ORCPT + 99 others); Mon, 5 Apr 2021 23:25:00 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3513 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbhDFDYy (ORCPT ); Mon, 5 Apr 2021 23:24:54 -0400 Received: from DGGEML402-HUB.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FDtBZ2RN9zRYx1; Tue, 6 Apr 2021 11:22:46 +0800 (CST) Received: from dggpeml500013.china.huawei.com (7.185.36.41) by DGGEML402-HUB.china.huawei.com (10.3.17.38) with Microsoft SMTP Server (TLS) id 14.3.498.0; Tue, 6 Apr 2021 11:24:45 +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.2106.2; Tue, 6 Apr 2021 11:24:45 +0800 To: References: <20210329054137.120994-2-like.xu@linux.intel.com> Subject: Re: [PATCH v4 01/16] perf/x86/intel: Add x86_pmu.pebs_vmx for Ice Lake Servers CC: , "Fangyi (Eric)" , Xiexiangyou , , , , , From: "Liuxiangdong (Aven, Cloud Infrastructure Service Product Dept.)" Message-ID: <606BD46F.7050903@huawei.com> Date: Tue, 6 Apr 2021 11:24:31 +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: <20210329054137.120994-2-like.xu@linux.intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.187.161] X-ClientProxiedBy: dggeme704-chm.china.huawei.com (10.1.199.100) 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. Some questions about this new pebs patches set: https://lore.kernel.org/kvm/20210329054137.120994-2-like.xu@linux.intel.com/ The new hardware facility supporting guest PEBS is only available on Intel Ice Lake Server platforms for now. AFAIK, Icelake supports adaptive PEBS and extended PEBS which Skylake doesn't. But we can still use IA32_PEBS_ENABLE MSR to indicate general-purpose counter in Skylake. Is there anything else that only Icelake supports in this patches set? Besides, we have tried this patches set in Icelake. We can use pebs(eg: "perf record -e cycles:pp") when guest is kernel-5.11, but can't when kernel-4.18. Is there a minimum guest kernel version requirement? Thanks, Xiangdong Liu