Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp457878ybt; Wed, 8 Jul 2020 04:11:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8UQGq0lmVRDPQiJuNpPEIclqOMcwce7LoM3d5N7uM6RKTuh52Tl4EtGW73IworfG0mwtT X-Received: by 2002:a17:906:35ce:: with SMTP id p14mr50707077ejb.514.1594206689006; Wed, 08 Jul 2020 04:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594206688; cv=none; d=google.com; s=arc-20160816; b=Lo/YaPkVcicRfu8pr5XV4fjpS/SArgGlXSfevNAu9Gek3HVQdN3A1WddAFA0Zy18f+ wywUOFmfFyiJkr1t1TOnkuAryyvdyEQTE1OM7IVyuHK1N29ucssEIbq1mIvNGDezRP5A 0Ve3lystglVG1H13/Be3vWzwATc7rsyahhdhrNpHJZn+waZeuAUkeroKlRy+hSe3vZ75 OMTdlMZJapeT4wjtLWfZNSqevHDog6jJ7FXz+FQgYLV4w2t7rB/e9XFOMtQfeHzSE6tG QheNKJn0iTP9lXvhVrcdbr34MA45EJ//XAvwfLFQjLDazTtAH8+vmPB6j52vtnBlbbW3 HRCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bkp2vvF47JADWAniwd4t8Rm/0+rP5emrFqHByZTUt54=; b=xsTVEwSN7OOEhp/wRgSghhWnjh5C7AcQTt770C74CcVQsgmK8ailrv8u4ExGUbe2D8 zd4tUsjRwFW8pLRL4Kma0Xj30dyLSCAB2FVJSfpApy2imhtRV8sJH130geMp2Nap3Wmp GCf8TQpMcvlfVlM+UY/uoXErjWY3G84cgm8y1EYDUZ7XRDVAhzet8lM2X+qxBy4uCUMs Jb6G4WKavxDBavy86RoVaWiBvbcF3oUXfsvzKeQFaaeGrn3QuioDK9QlfaMYuzP2EMcW 6o+x8pzaU+pYNmoqvUYVRmAckkVm+uhYjuw2mSy/iL9OlGQxlazp5fKuIbw/Z9o/23Du agiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O9DffPXL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si16999730edo.13.2020.07.08.04.11.05; Wed, 08 Jul 2020 04:11:28 -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=@redhat.com header.s=mimecast20190719 header.b=O9DffPXL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728801AbgGHLJa (ORCPT + 99 others); Wed, 8 Jul 2020 07:09:30 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:35305 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728588AbgGHLJ2 (ORCPT ); Wed, 8 Jul 2020 07:09:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594206566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bkp2vvF47JADWAniwd4t8Rm/0+rP5emrFqHByZTUt54=; b=O9DffPXLLVe6BHUVlzDCSwNPOmRnUBfOTWPjZeI351JbuJqkz1eSNKtl5LDxKqJZQrWdRY P608dW1rJ7dMTHl3Cysa2wpHaLIGuLOvqIJwNJfmRriNC3HA8gnbTZJRvOBHpDqjlQnOY/ IdsGftq93F0zIl7KoNqr+86eGyUeWic= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-491-sZr6g8wiPN2Wt0kdu-QgGw-1; Wed, 08 Jul 2020 07:09:25 -0400 X-MC-Unique: sZr6g8wiPN2Wt0kdu-QgGw-1 Received: by mail-wm1-f72.google.com with SMTP id 65so2512208wmd.8 for ; Wed, 08 Jul 2020 04:09:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bkp2vvF47JADWAniwd4t8Rm/0+rP5emrFqHByZTUt54=; b=MEQhkM+rmp//YoDcmXzGTnbQPzVAxdSsoLzwmd38dPZlIu+uXBwQZ26MrVAHMzvB5O OIHOBjMncukqKqJi4aZN+GO1nSbJClbZUH/dhNoAieNA9mYFuI3W/4vum3c6YNx3o4SN vKmI44egfFojAyuO24wx9p4ksfK1zSzGuK/N4VamFVTX1QLB5CdjO+PGNnZVdhVqLknX lgE/BaMHIgVv7QCN+ir+8DptCST0L7gz2eg+aZmCQ9qKkhXmsoB9zqtmrF6iF5gz8OhG ZopE7hubFUcBTgmDfGmv6qXfXVeUl2LUfSAbcqaC1fZ0qQYlPwujCkqERheH5vFQDQhx Dr4Q== X-Gm-Message-State: AOAM5337maqL/Ft0yUChcmo2Mb7M4sBFBTmyAl1+QyvLzSp41Y4h6r5D He+HNmr8lCa9PvMWsevty+1z3AGEAo2UdMh3cVEA9USVNUF9ynquft+op7lKQFisTZ96z4YNG2P vm0JrV8GRNFbsXkJ70nzBzNB5 X-Received: by 2002:a7b:c3c7:: with SMTP id t7mr8321928wmj.97.1594206564112; Wed, 08 Jul 2020 04:09:24 -0700 (PDT) X-Received: by 2002:a7b:c3c7:: with SMTP id t7mr8321904wmj.97.1594206563845; Wed, 08 Jul 2020 04:09:23 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:9541:9439:cb0f:89c? ([2001:b07:6468:f312:9541:9439:cb0f:89c]) by smtp.gmail.com with ESMTPSA id f15sm5181481wmj.44.2020.07.08.04.09.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jul 2020 04:09:23 -0700 (PDT) Subject: Re: [PATCH] kvm: x86: limit the maximum number of vPMU fixed counters to 3 To: like.xu@intel.com, Like Xu , kvm@vger.kernel.org Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , linux-kernel@vger.kernel.org References: <20200624015928.118614-1-like.xu@linux.intel.com> <8de3f450-7efd-96ab-fdf8-169b3327e5ac@intel.com> From: Paolo Bonzini Message-ID: <9b50db05-759e-c95c-35b2-99fba50e6997@redhat.com> Date: Wed, 8 Jul 2020 13:09:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <8de3f450-7efd-96ab-fdf8-169b3327e5ac@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/07/20 09:51, Xu, Like wrote: > Kindly ping. > > I think we may need this patch, as we limit the maximum vPMU version to 2: >     eax.split.version_id = min(cap.version, 2); I don't think this is a problem. Are you planning to add support for the fourth counter? Paolo