Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp606633lqd; Wed, 24 Apr 2024 11:15:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxsKmfxHP7byXkLR+AZffgzwhDXdqE4LZfkVQcbMs+IFvJtOL0+iOGJrnEm2oO8h/OTQkswizE7EcniYAuk8IHY59kn8VBQDXH8y79ig== X-Google-Smtp-Source: AGHT+IFhMiJDd3Au9X7dhUjU1NPxYTPI+dsPqHrx3XbMOl8K9SYfqnk+ietoTJtp5KSSN6c2AzkG X-Received: by 2002:a67:c983:0:b0:47a:1cd2:3d81 with SMTP id y3-20020a67c983000000b0047a1cd23d81mr3422635vsk.32.1713982514737; Wed, 24 Apr 2024 11:15:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713982514; cv=pass; d=google.com; s=arc-20160816; b=K6aQObgGsxV31pD7glwTCFQ19u7IfQb2b9RtuWUM7RURMHvC+MHJ2ZX3h1MCIXXc0T J2VCD19sD81Dq5YufZP/L5W7K2TqTY8/HdU6jHPpv7inh1dXIo4ohRfjROlFsZpuhT6Y /4evrYGhim+Jj+HV+bGGhzpdkKj7xnqj9ju8lWXCjRxMpx7fHm1tbTXkdVchp6rWgS/5 Qc2ofYQTBszSedK1ItV0Fyk7vTfWsRzB92O/LyGgnUQpkM+5Ndf9DNKRkWlmz7tXPgAw Ut7qcWbPVT63rOR14rCmUJge2u+rKRdS/nmXA9Fy4/PY66SpPd3K9YPyZfHTS80X38j1 RXtQ== 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=5Nf9RuAqkUK9T9UDxCIUnKz4FXLHAbFPZwBAFQ6x1lk=; fh=RG925cKlzMp8D5FGyJFuoZ6FlW4MBw0+rccgPQu036E=; b=xnffYhzTrOhhXNIdm1IXNhw58TXARUMgn4uD4mF9Aeqd1Tf3ZPZdwDKf+XpgtPVXG0 JTXzRnrq8+2L30oArcTRPGUU7X7pPeC38NDcXeeAGTqCly/U4FMks07CAPhfSHtop0XR yF8FdGVvPRHs/jmMEfqvt1dkn52U52XI/7l6Uwb0RRAnnBJdlOQRN394hqFy3BEWyhc4 v6H+CNsRbCCtHh9AgmrANpUeqLa9hIqPSYmy/2utkZzAuume0Eyydgtjk+ua++/6+r97 r7Ny8f84uCXW5lKmS9b62dgzk4ZveZNnhLEi/USQx6TmnqSyfUcD/6CVcOPTAYfdJCiC B8Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="VT/bioXR"; 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-157451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157451-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g16-20020a05610209d000b00476ae6c5d91si2296932vsi.750.2024.04.24.11.15.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:15:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="VT/bioXR"; 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-157451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157451-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 66D1D1C22C2E for ; Wed, 24 Apr 2024 18:15:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9401C16E868; Wed, 24 Apr 2024 18:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VT/bioXR" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 6A57A16D9DE; Wed, 24 Apr 2024 18:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982489; cv=none; b=S+sQv/c8BuhGYbsRWk1cHmUwYB7SOGr4shr9ZbxxR0OtpTKeK+u1P6Evd5PhMuhprbzDYx+V3QVNYrhVCsZrAsRjHkiG0aqEvwGuwST+HDbxAdzXSVtq5pwwdgDzpLi700KiX1Kt0cm7XfCxLZBLmY9pE60YrxsEJwlCBO5BPmE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982489; c=relaxed/simple; bh=kkF0kOmubRaABW0Hf14QsZUk5Z9XWIfvaI1+06NWDic=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CvGXdUGon7srow/BJ9ONwhHD46OZ2VC0Fo66rHDUG2ywPqY4Axy/uD7Io4paJIqRWZG9gq10sNpRYBvWldAY5awQ128Vh5PMRZVj/7hWn8DLty2lTv2NVyPpdbNWTC7pCPBfcl92yopuy1cVz+Fd9FwZM+IcelpY0vBwY/t6h6U= 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=VT/bioXR; arc=none smtp.client-ip=192.198.163.19 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=1713982488; x=1745518488; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kkF0kOmubRaABW0Hf14QsZUk5Z9XWIfvaI1+06NWDic=; b=VT/bioXRfEpqWYyn8QbY6SY5XgZlTbkDuNok+q/MDdgwbn+zxovExB08 l3xWnAEcDxDHLMGe2ho65VLUij47MUR2QbT6CXf4GB89VvFyLviE85bjH 7xbSCHDXuRD1+BVdM0Sp3HyJ/7+4hbn49auGFUrzJw2dRUAgeI2+Ga4wf gd4yyXlA4tt0gkPY63B6IT5DRrfTOdPKQFPLSDYYWUsmW5IKt65zQnFTZ WKIYs+ONXPShIYZ7Rjo731rBcgzSSPcSRfPqFfUbVRnFZ9AND6F7MPKuy KyyoLpdo0dAWMgg7gjZ/Tn/lPLIoDpQP94P7C+/4gNz65zp+CJvmPvKMB g==; X-CSE-ConnectionGUID: Qg8ZnJioQYafVr9/be98aA== X-CSE-MsgGUID: gpsBp6dvTlOB1dQkNH1QdQ== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503378" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503378" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:14:47 -0700 X-CSE-ConnectionGUID: yRuNC9RIQPOiq37fhZbzPg== X-CSE-MsgGUID: z01KKwbxTIKkzN3BFVKWSQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="24683658" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:14:47 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: Sean Christopherson , Paolo Bonzini , "H. Peter Anvin" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 03/71] KVM: x86/pmu: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:14:46 -0700 Message-ID: <20240424181446.41212-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424181245.41141-1-tony.luck@intel.com> References: <20240424181245.41141-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 c397b28e3d1b..2faa67a4bfb6 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.44.0