Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5595219ybi; Tue, 4 Jun 2019 08:59:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa20+p69U/WQGxRYiCM+uyJ+Ur6svSxUmDAgawjwIKfYDvsBwwE57JusvktgGESEKRElR4 X-Received: by 2002:aa7:81cc:: with SMTP id c12mr32572115pfn.139.1559663965656; Tue, 04 Jun 2019 08:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559663965; cv=none; d=google.com; s=arc-20160816; b=Gu9+OUsnhuvlA+nlESCviFrVq31Qf4mHo58LuApCyDaCmjVui17/8jBpPI/F2td85i 1sm5ENWBaGRGxX3TW22KJR6FWgIuJV1hUrXHnYsCglqgLV+mFYFxZgb0mZ7s9H0MPgBA LjJh1xtVWn+15NiPC+dFybo2Zvl8v0V0vQ8ZUT7GtDHCt0fvUBhusD9Dyr4ZCcjSyR8i WazITsyQJi7J4Kh9cbbQilH++zVvocsJdsh79F90xuhy2p6eCbSS2NUiHvuC2RnN8q/Z KPmRzUGoWa853nmm/oG//mC4AOrDweHZ9sQZrbnVPTLdYXgHHDUSLrT1tIhMSPfWSKRV K77A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TzHc9NWWKRgZbxCuCESuOAVy6V5aZPy4lPNt/yymc90=; b=A38YBcuqNb1v52hyVtqO+UYN2aplMgnTlPP+a9QTOS0+My76NIw8/1Wv6i5MifWpoj LXsnyGlX+VDLiifJwdGhXDpLCKf2oNPAD/3wCiXaz4uRJgLZ+1Y0aSnW0nGdo9LIuHn4 pvFhCtyirJ0fCvVhC6oxUmlptQZN6Ay0Wypan+tZawZfnjFm6D16B/P6sfutSnx8+uQQ BcH2Gt//UhyKSdTkUNdgLX/22sklpUl8+2UI37Y+QNRFiLkUVqZ8ar1zDWX0LWGHnpkk 4swR4RE8YcX/2rrgoSceRnrTRgmYdsAAAP4bWLf4d8dTSZI8oDSCWO8WRmJP0eqbsSwY m2rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sd9yR5er; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35si5641502plb.255.2019.06.04.08.59.08; Tue, 04 Jun 2019 08:59:25 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=sd9yR5er; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728219AbfFDP4u (ORCPT + 99 others); Tue, 4 Jun 2019 11:56:50 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:41276 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728166AbfFDP4t (ORCPT ); Tue, 4 Jun 2019 11:56:49 -0400 Received: by mail-ed1-f68.google.com with SMTP id x25so1129563eds.8 for ; Tue, 04 Jun 2019 08:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TzHc9NWWKRgZbxCuCESuOAVy6V5aZPy4lPNt/yymc90=; b=sd9yR5ermmISTJa8qycY9JqtqdzXZe7wb4kFIdqHQtc+MxalnsidgCTphkzIMQyWJ/ zKu8gVFayK54GS8JR4aQjeG52V1VTes9JZbEC/tHjwYE9gBsWVeKYGvtKZnzpES6GFih gpHa10GhBbAFOjaIa9ZYiEW5WEHkG7nat4M1a13fqS758WSTOPuTnSWHPpSLh/rBKmuJ vSfWoCHLpQTQA+TRQM/VlMF+t6hYxnfT9flxonlslP3mZlarerDm/p6kK2/YknOpGtYj 8wOaqdcTHpz8NmMs1UT7YW0vMFdEZqQmCQULrLKlsCOzxL7SzQG6o1u1YxN8i2DsY+fP R/jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TzHc9NWWKRgZbxCuCESuOAVy6V5aZPy4lPNt/yymc90=; b=NV95+nC4eBpVXmT8oeITcqBCpP6Esadgqk8arWuu1RNSiMeDm+vrMEjXtXLf6K38af 0gnWoFDjCSfhvY0aL88piBLg3dWDt9Vemi9oDFQt9yVBpdN9HXqaIPmvYMzYxgI93WTX W4OS6MU062roMwvcDWs0HAzursmYsMFK7yxJJS1pLIMBwtxKB10ZZcuwKOW1KjzU+faG /pZ4dhS8adHlZSkuzdWFsz7cXZVyM2hQ/cC/lI531wvwm2d6FmK29ziAoPXSp1zBCzLC LE+DF8Opsa1v18E/fAJhwRveK7WoQt+XM16Pw04K3PdRLNtS/ZNxKbFAngCGGu+m4DsD PM/A== X-Gm-Message-State: APjAAAUuPGfkS8y1vebm7rGJkKcDHlRplZ7sAHk/1/5GB0Mjy/jL8fyu V7/+D453K2/RZ9k93NaHDQlv8PDqSer4vc5BJpF6JQ== X-Received: by 2002:aa7:c391:: with SMTP id k17mr37200588edq.166.1559663807555; Tue, 04 Jun 2019 08:56:47 -0700 (PDT) MIME-Version: 1.0 References: <5CEC9667.30100@intel.com> <5CEE3AC4.3020904@intel.com> <5CF07D37.9090805@intel.com> <5CF2599B.3030001@intel.com> <5CF5F6AE.90706@intel.com> In-Reply-To: <5CF5F6AE.90706@intel.com> From: Eric Hankland Date: Tue, 4 Jun 2019 08:56:36 -0700 Message-ID: Subject: Re: [PATCH v1] KVM: x86: PMU Whitelist To: Wei Wang Cc: pbonzini@redhat.com, rkrcmar@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 3, 2019 at 9:37 PM Wei Wang wrote: > So, I'm not sure if "quantifying LLC contention" has been proved to > be a real issue. If this is considered to be an issue: > > - without PMU, we could also write a piece of software to run in the > guest to quantify that contention (e.g. by analyzing the memory access > latency). How do you prevent this? > > - the same thing could also happen with the L1 cache (e.g. a vCPU > and a host thread run 2 logical CPUs on the same core). If this is disabled > as well, we may have very few events usable, and would like to see what you > have on the whitelist. Right - I'm aware there are other ways of detecting this - it's still a class of events that some people don't want to surface. I'll ask if there are any better examples. Eric