Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp333665ybc; Tue, 12 Nov 2019 02:10:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwkZmFMRHq6FMsFgJ84Vr6ac1zVL/U+36GfqTkapd+hyqm1q71fVTb7af7shALZTA8jdnUN X-Received: by 2002:aa7:d64e:: with SMTP id v14mr31836263edr.88.1573553453343; Tue, 12 Nov 2019 02:10:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573553453; cv=none; d=google.com; s=arc-20160816; b=LfogvOjwn+2c/KX10VJyN4CPCLxWE90F7t06M80vi+EJIiyUJJ9CEuPyp+Huos8MEO r4WLnUTumxd5VXybTtUP/nT4G1/Lgyzv279xjxLVjJPKVWiE7i39uEZURI1Rnk8DuNas RZYFGjEMp8t86suCcvkhRRE9yeaKNTp/x6A3RM1cib8TErgUuOtlZP4iXimyDpNBkiR6 is1hjzealh/43EqSGVmptaqL4n26csPupLK1HXDIBuriVKoJonq2y0h4403YnGfVB63H iAkfmrk3vrwUpBHOCJPeKz1rFB+8bzKAP0XNgtzJap2tKSnkytTQC+UgS3dBJ9oMBmAF rXoA== 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:openpgp:from:references:cc:to:subject:dkim-signature; bh=rm+SpsgER6q0ZzJGxmttnhDXfih8qrCKpsGq3yb+Vgs=; b=vglkBpxzmdJcwnro3OxrmMAz9D6dz9uchBpXlg236Qrcx5q8K9JZKwUFiYe9n1bG2D +zCzHiU3SKPvywFihM4AJ5BntFawRTkpFIzKzjo8IRmxoF4ZyKpbe/YkkSNp4EAr2jz8 daKY5ReKqaImx37S0cVkZPEy83i+Ou1syO3JIHrNUw7fIzx+U33vTlsHRKZa3Tid+lrg xjRB5l9FvkxC6m2w6kZCmpv51bXEm4F1bbydYvR9xJ2PXH/9Ik69OCN/q1npXloaBMZf MayHZTkJa8dkIWoAow1UL5cQcsY9qOmqcLn9QK6qJvujIXtlxmPz3ZrdIgEu2d4/Z4gY IWjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OWZdIq3y; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qh15si10605400ejb.295.2019.11.12.02.10.28; Tue, 12 Nov 2019 02:10:53 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=OWZdIq3y; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726985AbfKLKJV (ORCPT + 99 others); Tue, 12 Nov 2019 05:09:21 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:49617 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725834AbfKLKJU (ORCPT ); Tue, 12 Nov 2019 05:09:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573553360; 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:openpgp:openpgp; bh=rm+SpsgER6q0ZzJGxmttnhDXfih8qrCKpsGq3yb+Vgs=; b=OWZdIq3y/bIAj39GVfMWVolDWj1kg4YXzq2Vw3KBZ6XKfde4arrH9vkFiHvQu2d4MgSX0J RkzZoD1b7kuuHTk006uF8SC4LeHFOEtkZolsf4d0Gp973OedS6WC3s3f23NpVDxQpmaGGN GdSVWyl0ptTp0ghyqII6yQk9SU79hsw= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-48-Ng-hEyGFPDaVnavp_JwT1A-1; Tue, 12 Nov 2019 05:09:17 -0500 Received: by mail-wm1-f71.google.com with SMTP id v8so963034wml.4 for ; Tue, 12 Nov 2019 02:09:16 -0800 (PST) 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:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/T+UqvDPJA0ruFuxC0ui4R1v70oUmaDOHs4UxSNtf/o=; b=DyLaizry99FnF/6KKhRGQbJ+ulBBwCMDdlFDXFSljuGw+g0VD5w8z/WkRY8Qr46gt6 aV+r2AUZlKa9f8U8r5eKHdvFxrJFkcvkuNgfl4MXARhqOKSkVy04zOrHjZRZKn2WwzUq on7oOhPoWAFYnK3R+Urx1ZgF/vTSYoM+3BeQ6CiFrtDdEWLD7hq3clyUcPYhoaFnELL8 wslQTq062qjEHA4dd/8w19/lp0q1uMd8OunjV0K1/n4P2ujcjIW6GLO8l6jkGL8OQBHG Prkf4moEStlOrJdD6perdNqStDknTdlIq2Bh8RDjyq/r5xaABox55ASJb1l9v/WT74jP MlPw== X-Gm-Message-State: APjAAAWEfGWQNPzNs4VpQyThnORE8z7ckK26TNag4/LcKlW8CLf4HnxZ bYtDj+rmTPnSwUByRm4EXAczLG69qDhE7Pgc5BEw56AsiDac7UwcWDigk6M8fxDEF48SL/eRtTt AcaAXZxBMcMWHueiw4D+4FejR X-Received: by 2002:a05:600c:22cb:: with SMTP id 11mr3211639wmg.117.1573553355857; Tue, 12 Nov 2019 02:09:15 -0800 (PST) X-Received: by 2002:a05:600c:22cb:: with SMTP id 11mr3211614wmg.117.1573553355624; Tue, 12 Nov 2019 02:09:15 -0800 (PST) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id q15sm10709704wrs.91.2019.11.12.02.09.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Nov 2019 02:09:15 -0800 (PST) Subject: Re: [PATCH v4 0/6] KVM: x86/vPMU: Efficiency optimization by reusing last created perf_event To: Like Xu Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <20191027105243.34339-1-like.xu@linux.intel.com> <20191028164324.GJ4097@hirez.programming.kicks-ass.net> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: <21372ed6-b8c1-3609-1ab8-2d566a4319e6@redhat.com> Date: Tue, 12 Nov 2019 11:09:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-MC-Unique: Ng-hEyGFPDaVnavp_JwT1A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/19 07:08, Like Xu wrote: >=20 > For vPMU, please review two more patches as well: > + > https://lore.kernel.org/kvm/20191030164418.2957-1-like.xu@linux.intel.com= / > (kvm) If I understand this patch correctly, you are patching the CPUID values passed to the KVM_SET_CPUID2 ioctl if they are not valid for the host. Generally we don't do that, if there is garbage in CPUID the behavior of the guest will be unreliable. Paolo