Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1506447ybj; Fri, 8 May 2020 02:56:39 -0700 (PDT) X-Google-Smtp-Source: APiQypIH/IKY/36jCUL3aC2EGgEYXN32BClaeIpf7bsjk+eVDp9PfOKXboBvszshFyCROnJzfTd0 X-Received: by 2002:a05:6402:311c:: with SMTP id dc28mr1313298edb.323.1588931799789; Fri, 08 May 2020 02:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588931799; cv=none; d=google.com; s=arc-20160816; b=zNVQpT5HIRTdRLp29quUU/Mw5o/TnCsKDn3ZYnLmvM5OhO3jDEFCuLUVmOu0FsV4Gn 2GG3/KwpstW7IzTn+MqbJ+4cjrCtj9k2rTi213Y4bMc/GWApYO8GATGXX1huBUMfv0PU UWB3e2WrmkRPmhp92sZX0wwxBVzBRHzjH5T3LXSRlvhHHAYwbFIddhAWdA6YbVLMQho6 7I5q9SxIjXuK8XkE9FbMMaEZoCMra7IiMlGmds9z6mqa7A/V0N2fc99CGNq9/NZENnlb chCFPI7jNwYNpYpCNx4dM7LdAHHNE/9d3NGg/+dQ+sCMwiYNFW0z0GOB3xE5VJO9A0Bb UoyQ== 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=+dz6rA08h3MZ8FdUWtlFCXT77fAjr2cP8WCCtv+kX0E=; b=oQnsxP6Sn6ojvMCCsZucNuMCDfWO1/mf+kCxZfhbxFddishREejQC+4GiZoOgn76mY 8Gh6gM+tm+VIYd+4dYTgLU9GiYcP/BZlhFEHZRBr3odpTh7LjA9SDIRBbU0Rsy90cqW1 vicyeu4joMbYmHnLlTx1Uu8GDcdB8mPlSqSHhD9QxXddadiClIDdRalfIcUyPJ2gHWQd nrncvr4LP+CCh90fC8n2iBBJgfesLhR/mu0DpFdw5oTdp3sDn792xrysOx3mjaVSb/Bp bsstZIZnu1pWt4ZMNPjGHlp5frUFg+rKDXO+OLuFg9Y7tHTAnzBAgHFzuTdQOzSGyZ8M UpMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eSfrkPFv; 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 bd12si625405edb.506.2020.05.08.02.56.16; Fri, 08 May 2020 02:56:39 -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=eSfrkPFv; 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 S1726974AbgEHJwd (ORCPT + 99 others); Fri, 8 May 2020 05:52:33 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:49510 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726904AbgEHJwc (ORCPT ); Fri, 8 May 2020 05:52:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588931551; 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=+dz6rA08h3MZ8FdUWtlFCXT77fAjr2cP8WCCtv+kX0E=; b=eSfrkPFvXJvWDjsB0JJYTMmvWKDh8SqEisWzeVA2p1EYXiY++XrpnfGcFeGCcrl62G4Zhx SR72efQqGYjQhujqUHP+M/IiaYzS2Lcnw2LsuUBKhwgLcM7Nbd9A0huQJnpw+FzPVkdrgb mXTwYLF89wctqIg0prucdt5vpi5FI/o= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-192-mFWJut5rN7ivExL0uh0hCA-1; Fri, 08 May 2020 05:52:29 -0400 X-MC-Unique: mFWJut5rN7ivExL0uh0hCA-1 Received: by mail-wm1-f70.google.com with SMTP id l21so4935163wmh.2 for ; Fri, 08 May 2020 02:52:29 -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=+dz6rA08h3MZ8FdUWtlFCXT77fAjr2cP8WCCtv+kX0E=; b=shEZUIpzCC6lPdpPrcIh5TERtqYTUdV3jrMCNdICohMoLabaRgWVWnuy9YzMnfJx+Q BWm4y7X6Sdmpywol+HuMk01R70QoGpVHdyIB0rr76JM8OHvltMVX1XAMbxHeKUaXapQy mKS1CPCHB6x6wBuv9X+XpGEcZvWO6iqBPSNy3j7l1iIMUPi9LiuhuXtvSReejEjJ84K8 5B+aR4Hjh9RYPhvrwfvxgTZJ5wpGIw7TugOkO8XG2PbtgxSA2Dkj6SQzjy9+4WH1U8AX xLiYeis7oQMylzzXIWIGXmXZelhnd1LsWiwynfOTMjUSmJPGoOAIqkCZoX2VtA+4FRmW 23JQ== X-Gm-Message-State: AGi0Pua9BNHUzNoVOLeM6pAsAOPW/TjAEF4rJ3NeA4naZ5DDxvouwuPY p4HWN8v14EBLn/YiHw7056lCZXzNjZuj20hqqs+/zs4Cu1U2oJ6m8WE1T4FdpBB1sgRm45fAIsD UQ5PjsLZcw/FogoxjbKJ9sJgp X-Received: by 2002:adf:bc41:: with SMTP id a1mr2133064wrh.302.1588931548436; Fri, 08 May 2020 02:52:28 -0700 (PDT) X-Received: by 2002:adf:bc41:: with SMTP id a1mr2133038wrh.302.1588931548233; Fri, 08 May 2020 02:52:28 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:20ea:bae4:47a7:31db? ([2001:b07:6468:f312:20ea:bae4:47a7:31db]) by smtp.gmail.com with ESMTPSA id g12sm4237266wmk.1.2020.05.08.02.52.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 May 2020 02:52:27 -0700 (PDT) Subject: Re: [PATCH v2] KVM: x86/pmu: Support full width counting To: like.xu@intel.com, Like Xu Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200507021452.174646-1-like.xu@linux.intel.com> <3fb56700-7f0b-59e1-527a-f8eb601185b1@redhat.com> <72d7d120-85af-d846-a0d5-fe8fe058be34@intel.com> From: Paolo Bonzini Message-ID: Date: Fri, 8 May 2020 11:52:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <72d7d120-85af-d846-a0d5-fe8fe058be34@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/05/20 10:42, Xu, Like wrote: >> Given the bugs, it is clear that you should also modify the pmu.c >> testcase for kvm-unit-tests to cover full-width writes (and especially >> the non-full-width write behavior of MSR_IA32_PERFCTRn).  Even before >> the QEMU side is begin worked on, you can test it with "-cpu >> host,migratable=off". > > Sure, I added some testcases in pmu.c to cover this feature. > > Please review the v3 patch > https://lore.kernel.org/kvm/20200508083218.120559-1-like.xu@linux.intel.com/ > > as well as the kvm-unit-tests testcase. Awesome, thanks for the quick reply! Paolo