Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2746429lqo; Mon, 20 May 2024 15:48:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQt1eoLHg57HGeJl9xyhAaH4w9JS9urBgT/T7NYAfuepLHxS0+edEz9jaWBqGoufVBywH46Op585monbDo2NtbfCG2sGUPUFM6Llqsqw== X-Google-Smtp-Source: AGHT+IHb6sw6+93vIEBQ5pSZSxmlz0U4U4mMdKGb76p23ImhNh8NqvAlsthwazxlxFk5bg9hlyz4 X-Received: by 2002:a05:6830:204e:b0:6ee:6741:53b3 with SMTP id 46e09a7af769-6f0e90f48f5mr36627403a34.5.1716245284827; Mon, 20 May 2024 15:48:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245284; cv=pass; d=google.com; s=arc-20160816; b=tJaEXqH37USx9l3N7Tg3l1cBfd/nMo2nIdSYo0JBPR/ZVY5On3ij6ahAwCzLU3eX// AEG5rrRUAHwJXoPBV2ZCqDAxG5itpfxOtGEk2+ToTlMjiYr7oi4sGHh11VbSZxqpOpHe xYhmHPdhGKKAjWUwaHqxtioqb8D8O6xlpmpuY9jf9g4L5jm0o+1KIx2Gd5tjP7OKVWdX S1YL+Oxkwky8YZogR++d/lwAduWNhjYl9Qz4aixJhw3PvnWVX9YIvQEfPDMWK3Dmago9 qDVD9xSVqOUBURI8opwzZj9q0SPbitzxJ7hzYzIAMsPC1LujJ2Drn5/9ifUFDH5v26h2 TRJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=f70UHfRYUgOpuNEH6YVvPl+pPpxNSEAJR9fEcP6JvU4=; fh=DhUj25ihWaU1NJFr1npS1xJMFpKZWtUyNg+137ifISQ=; b=MKlM9fXyFppA+XmQ3+/qS2+P5pTmZnOkVjHbuHyuxUAIt93FPCKRdA9PqMg4tFRtM9 /jxW+oAIuLEdNEWi9BsCUyGhJPVMBvB5g+NZZpvnwpt20gMRJFwRGQVmv7s3WSkCo+KH Lzns5iG4yn0zGvRpHdGlk8ElDYfDW/FFrbAc3XccNVaHFseeBc87ni7LzanyyYR0/CgU g+8WvqydqfA+f6WomBgpkb4+aA4pX/pDDlgRYViL3l3I+UljqxtHFRFFZGGZJ93KCsLS Mbtc9T42235bLDSU0gXniMTO/7jIRp3y1hz0QEsX7egJJrtt7gRvdv/6CwY1AA7anS2c DfCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q4PTQcqH; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-184236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43e2460fe7esi6638841cf.432.2024.05.20.15.48.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:48:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q4PTQcqH; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-184236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8965E1C20972 for ; Mon, 20 May 2024 22:48:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C73F513AA39; Mon, 20 May 2024 22:46:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Q4PTQcqH" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35C2613959D for ; Mon, 20 May 2024 22:46:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245201; cv=none; b=ZfgXRX1Q+N4Z1MooyWSLDtfXCzdpg6Y/jha1jWmZW844jdw6jpvqGROUk47nXsRcNUGimYDS3jy1f6t5PG4/nS42s9wYwkfxa6s6xG0T6OcqCYaxPt5Qw0O/u1t84+HmPFE5Wi7yiStnt8ZTFLJcOzDmf6fXrmuhk5ttb+LZBh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245201; c=relaxed/simple; bh=XfoA0pauCDfOJgfi1sYfYTOnSD8UB46WDQ7JXbYpI7A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Le3ZAOUMZJKKFrIPuYOQflqSF0QbOEUsoCRfl5j/I+C0QAuYdklxYXzQ75NgovZRbJhsJVcY+hKPXAP8/ha9+/zOHlDhafhpF9ppRBJRpS334HUPWT1dopAT8dXRfYdnVmGsVvfHugrk15A40051SMEsXTxJWkQDFY6e5NAvzrI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Q4PTQcqH; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716245200; x=1747781200; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XfoA0pauCDfOJgfi1sYfYTOnSD8UB46WDQ7JXbYpI7A=; b=Q4PTQcqHL13WpcFPFtADVerkpGhqE2lDLouEcH3oxjCRCcIT9wflp7ae QTuY0xzS9xl3WfCgeNxEt/sk83cnmp498udIS31Tajhry3izLfkkp2+Cs 7PvTkfyVbe6A+bgTNte5CuSX1Y5+FYmmVWq823sRxCML+Y8yT+DHOV/MI LTLDXFlRSPcXLHeIDhDgxsKXHSDpmdMhPc6q8TyiYk1KBlouUq1aGQvOt F2w1NT1aTz2NJrF8bsSlxXTm3i3LWDalvhKnL9IxhWVmlZ1hClC6ysHvf BdK7F2X6j5YaQMrQTVx8g8ilvzF0yVp2mzoqx66mH2FJKlEybnMlAzqWP Q==; X-CSE-ConnectionGUID: xrHK+r8fStOiQ1eCQCuwBg== X-CSE-MsgGUID: ErchC0pUSuaZPteKPQmcGQ== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199586" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199586" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:36 -0700 X-CSE-ConnectionGUID: khRuJN/sTaOQz/5AsH70ow== X-CSE-MsgGUID: jYiVDghcQ22y+MW9XAmbrg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593406" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:36 -0700 From: Tony Luck To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , Rick Edgecombe , Arnd Bergmann , Tony Luck , Mateusz Guzik , Thomas Renninger , Andi Kleen , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Sean Christopherson Subject: [PATCH v6 08/49] KVM: x86/pmu: Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:39 -0700 Message-ID: <20240520224620.9480-9-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240520224620.9480-1-tony.luck@intel.com> References: <20240520224620.9480-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck Acked-by: Sean Christopherson --- arch/x86/kvm/pmu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.c index a593b03c9aed..938d01bede80 100644 --- a/arch/x86/kvm/pmu.c +++ b/arch/x86/kvm/pmu.c @@ -34,16 +34,16 @@ EXPORT_SYMBOL_GPL(kvm_pmu_eventsel); /* Precise Distribution of Instructions Retired (PDIR) */ static const struct x86_cpu_id vmx_pebs_pdir_cpu[] = { - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_X, NULL), + X86_MATCH_VFM(INTEL_ICELAKE_D, NULL), + X86_MATCH_VFM(INTEL_ICELAKE_X, NULL), /* Instruction-Accurate PDIR (PDIR++) */ - X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, NULL), + X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, NULL), {} }; /* Precise Distribution (PDist) */ static const struct x86_cpu_id vmx_pebs_pdist_cpu[] = { - X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, NULL), + X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, NULL), {} }; -- 2.45.0