Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp883212pxf; Wed, 7 Apr 2021 14:05:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWuy+LNGW6/UJQHXHsMEaSXT12bCm05MwGTpklC6rce6hgkwJAr+gKZi4f/ipnHmWik6y+ X-Received: by 2002:a17:906:dcb:: with SMTP id p11mr6051792eji.13.1617829522657; Wed, 07 Apr 2021 14:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829522; cv=none; d=google.com; s=arc-20160816; b=vWBO5gBdTU4lGnsc595bufUo20VZcS2f319Ql2GaDkAfgDtRxK4mEXmyqC1mBjTJ4i 0VOwQf6KP11eQWFXDLCN9lxmKbINWjb8HloOj2zfRk16D97zdt0UHvoZ97YvsNY6IcNL GxRgg/bJMmy7gHndrwSLnpeVxU1pg2/yoJ8WjYjcv05tqkJ661uV6WKxyNg7v4IRkxso WpHkw4c3igMK3Bp6RhseFikiDoHY0UJU0EjY7iQDFjG5fvVi2WrKTW5kv+g4ds4EgrzV LpPt/Hfk0Qedf8Yi2Vk+2WX3AUI/ZK9I7vRptxOyxg6WwiAxCAIddQFL2byF10tPaXZs htkQ== 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=lfLPgQVWc1qtlv9Rrz7Uh4JE3CdfZT5m0FJbmmqDHas=; b=mhhag4GSeqFrwOJegAIJl67mdDQL78Z2Pw5/KFNAzyp5c0lm6dzolVkKEPtINzKPBL /wI+AUIrSeg0qmWY4eVY/iOAkBHZvuLbyoTxA+3kJrliWeZOrywl2wqTolzeWV+cNkRo NNnC1xe5ssc5zLWfux9M5E3KNS8ghBh19oMZ/MUdqJZW9Am7ixlUJXrMc8dLlm/VIPcY 2i4orcHJ6afQF2uGr7vPGkynHwYrDi50TEph5/mILJfYFpFzHcp6Y/5RQwmjFFb2unsx UdMn4IRcVfnLtaaduvMMkgalPhJif7camtodbB6UTdxZmcNldEzdYm5tDcovMgL3eqYo alLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=DTtoVhBs; 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 m17si9175222edr.21.2021.04.07.14.04.59; Wed, 07 Apr 2021 14:05:22 -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=DTtoVhBs; 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 S1352963AbhDGOcj (ORCPT + 99 others); Wed, 7 Apr 2021 10:32:39 -0400 Received: from one.firstfloor.org ([193.170.194.197]:41738 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231829AbhDGOcj (ORCPT ); Wed, 7 Apr 2021 10:32:39 -0400 Received: by one.firstfloor.org (Postfix, from userid 503) id CB1BB868A0; Wed, 7 Apr 2021 16:32:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1617805947; bh=q6WRy7x4P3q8OvJPkyTv7aaqP4ZecObHQcJpWRuSaXU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DTtoVhBsKIspmBxu7dkw8S16LQBCS8+J6AkmqBNkDvH+aw4jz6H7SKefo2yR6FOLy hQHyzAbNHqY9YKLXZku+UWOr5JFqvmzILXKJ1EHmIwqRdoRHsjKJtI9MKobmx6s0j0 Ct5R9SdhhEfIuwHVSiKKv8qWzsjGllUFZPBOMzII= Date: Wed, 7 Apr 2021 07:32:27 -0700 From: Andi Kleen To: "Liuxiangdong (Aven, Cloud Infrastructure Service Product Dept.)" Cc: Andi Kleen , like.xu@linux.intel.com, "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: <20210407143227.xoue623sigpx57c3@two.firstfloor.org> References: <20210329054137.120994-2-like.xu@linux.intel.com> <606BD46F.7050903@huawei.com> <20210406124746.ji5iqladdlh73mok@two.firstfloor.org> <606D2170.6020203@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <606D2170.6020203@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 11:05:20AM +0800, Liuxiangdong (Aven, Cloud Infrastructure Service Product Dept.) wrote: > > > On 2021/4/6 20:47, Andi Kleen wrote: > > > 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. > Sorry. Some questions about "Pin the whole guest". Do you mean VmPin equals > VmSize > in "/proc/$(pidof qemu-kvm)/status"? Or just VmLck equals VmSize? Or > something else? Either would be sufficient. All that matters is that the EPT pages don't get unmapped ever while PEBS is active. -Andi