Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp54886pxf; Tue, 6 Apr 2021 14:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrhYBPmZOHj1egVEN3ZCgKfPiolx0+djlCZGyRR4oW3FPW6UdbtGwyAO2XY4I7oX7GS59p X-Received: by 2002:a17:907:3da3:: with SMTP id he35mr119174ejc.148.1617745855453; Tue, 06 Apr 2021 14:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617745855; cv=none; d=google.com; s=arc-20160816; b=NdwiG9oVZIK/Wn3uYYk1iK5uuR5E383nuJtDK2ywGDCYcMg6MLcmzZqJ6aHrYJZOp2 hfbBCp/9+q3cDBRL7N6+LZ6OfV6R/QVcYg8wktvLxUF+7CNppPFG/JwiN/McOzN/oynp VopZPn91AS+leIY/4PziT+fVqY5hDpScbdxFuaiPtD4JyNOyIam9nFLFQaBEcCVkBcG8 OFQRaKeKbzw5ZX1Z/beTYbKovIxsIVbBC4llg0G66wnEUZofpuHSD3/etCmN2wrWf2Dd nSGfV8p0Fq9hR9atHapiFkFdoer1HZAzvRdx12oXqgySaethc2aYWL5bEFic/VcmUNVq E0Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zG71zibx81JQknXMQtCBS3M2gNUFEAkHhST3V9v42WM=; b=fOOVlc11JZsXuPWznlZiz9/b7NrIdpyYAEmEfJg5c5pO7Tq9xVMvmb1ak1gAid5Dnj /kLqu+kJeRJzQlHDbP9gu5FKWIB3gFBWEW8Iqffr5fy+WF76TbTsrSy4iIFwkf12K4ph HbQyu+7MzLxXknVOU7EgIjy+cw7FZLshke05VNwlLC8U06fWWfGVJbaWbtMp1ujZt0L6 ssOJAuj7O2K7wz6FVbzLkdPeIw4slb+gzA6i6VanzF+UC7hqLtaaweW3siiDIHU8Hoba c5s1kqErQIn041ydu0SOAjuYzIQhB2s30vMv7UAvOFWNYXLbp1o0o8b5ozNonp4Ozz2F 5yHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=GOraf4mR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si16849713edx.572.2021.04.06.14.50.32; Tue, 06 Apr 2021 14:50:55 -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; dkim=pass header.i=@firstfloor.org header.s=mail header.b=GOraf4mR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242237AbhDFMr5 (ORCPT + 99 others); Tue, 6 Apr 2021 08:47:57 -0400 Received: from one.firstfloor.org ([193.170.194.197]:34662 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238988AbhDFMr4 (ORCPT ); Tue, 6 Apr 2021 08:47:56 -0400 Received: by one.firstfloor.org (Postfix, from userid 503) id 601D386865; Tue, 6 Apr 2021 14:47:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1617713266; bh=CdYNa370bBquGEl1acV0SOuET0FhQiugpUMFUDq/8Ak=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GOraf4mR/gXfvs/VBHQsFUEZnaM8iuBw4UzY/eyJH+56+SIskc03wbHCmg7yLQS8w ldf+UIi14OhEcXzGmj+rI8YhLe7/ZLhZa4kU6W4ks11WvPVUErFg5XZzNiXJHU/Hs9 tXQ2g6ceLwxhLC+mzel9W0HVnMbTe08LF7GSOPJo= Date: Tue, 6 Apr 2021 05:47:46 -0700 From: Andi Kleen To: "Liuxiangdong (Aven, Cloud Infrastructure Service Product Dept.)" Cc: like.xu@linux.intel.com, andi@firstfloor.org, "Fangyi (Eric)" , Xiexiangyou , kan.liang@linux.intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, wei.w.wang@intel.com, x86@kernel.org Subject: Re: [PATCH v4 01/16] perf/x86/intel: Add x86_pmu.pebs_vmx for Ice Lake Servers Message-ID: <20210406124746.ji5iqladdlh73mok@two.firstfloor.org> References: <20210329054137.120994-2-like.xu@linux.intel.com> <606BD46F.7050903@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <606BD46F.7050903@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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? Only Icelake server has the support for recovering from a EPT violation on the PEBS data structures. To use it on Skylake server you would need to pin the whole guest, but that is currently not done. > 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? You would need a guest kernel that supports Icelake server PEBS. 4.18 would need backports for tht. -Andi