From patchwork Wed Oct 25 19:29:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Edwin Torok X-Patchwork-Id: 13436610 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94C75C07545 for ; Wed, 25 Oct 2023 19:30:31 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.623206.970929 (Exim 4.92) (envelope-from ) id 1qvja9-0005gm-8T; Wed, 25 Oct 2023 19:30:21 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 623206.970929; Wed, 25 Oct 2023 19:30:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qvja8-0005b6-A0; Wed, 25 Oct 2023 19:30:20 +0000 Received: by outflank-mailman (input) for mailman id 623206; Wed, 25 Oct 2023 19:30:15 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qvja2-0000YO-Sq for xen-devel@lists.xenproject.org; Wed, 25 Oct 2023 19:30:14 +0000 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [2a00:1450:4864:20::62d]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id eb8dbfe3-736c-11ee-98d5-6d05b1d4d9a1; Wed, 25 Oct 2023 21:30:14 +0200 (CEST) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9ba1eb73c27so19626766b.3 for ; Wed, 25 Oct 2023 12:30:14 -0700 (PDT) Received: from edvint-x-u.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id hv6-20020a17090760c600b00985ed2f1584sm10408710ejc.187.2023.10.25.12.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 12:30:12 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: eb8dbfe3-736c-11ee-98d5-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.com; s=cloud; t=1698262213; x=1698867013; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6eF/vhiJowLpX1e2n8G2TeyGZWL6SIxALSARC90/5+I=; b=f5HULaJUGkAJ8ff/7ptP6Hb0hFDr46RAOoLAGlBi1r/r08oET17uWEv+lJrdEzhNhJ nkorl+fjOS/rOFu18BAZHHyYvR+kKVGujiB41RTirqsQo+WJ2lshiSpxorQwWmgTbfGD lE9cYLUBUPOPrV8AI3+9uDRrW2pzoTW62Kio4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698262213; x=1698867013; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6eF/vhiJowLpX1e2n8G2TeyGZWL6SIxALSARC90/5+I=; b=lwMngeD3+QCFccXwH5DwG8ywRuv74RVW1rv6rpgCtY2FG78F+9Ty7ppH+DgNHY8Kwa +UJNNjoxebSwE4+lI7JwyVgBN2Sxoowg6ZniV+nPNQJkk2owW5X46RoSPdjQlK3PdIuV 4x47l9GZgfeTWQGdTAj6A6R7BU6X4kp8ZycIa/FMdT5B22VW1ar0Bush9YACC4ogeznC mWO69n1y7izKEFrKhoWYgfcXlhRfIvm1flNY2Y3dOItfzTDT1AnwdHVVd0/QZwimBBgV sOyTfWxnn1VCFFtcFidFovIzK5LYGQ355bCC+BL475coUEuNqGuWiU34M/Mme538dON3 OrPg== X-Gm-Message-State: AOJu0YwrNZVxY7pBcT/4pbOI4LlsvscfJUePqGTWUrvfICuNzi/foF7b Yis8+aGkbF6dWz/Zm0xj4ff+1mGJSxRMB98LtzwC1A== X-Google-Smtp-Source: AGHT+IGXWcyEPQSQpmGRN8slTsWFz9fOVBr75bHc7OV40rvbFBerfXEiIVG5WX44sczPhewAuWaniA== X-Received: by 2002:a17:907:3d9f:b0:9b2:b152:b0f2 with SMTP id he31-20020a1709073d9f00b009b2b152b0f2mr12217976ejc.10.1698262213534; Wed, 25 Oct 2023 12:30:13 -0700 (PDT) From: =?utf-8?b?RWR3aW4gVMO2csO2aw==?= To: xen-devel@lists.xenproject.org Cc: =?utf-8?b?RWR3aW4gVMO2csO2aw==?= , Jan Beulich , Andrew Cooper , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Wei Liu Subject: [RFC PATCH 19/22] x86/PMUv4: bump max PMU version to 4 Date: Wed, 25 Oct 2023 20:29:49 +0100 Message-Id: <981a906f2f309c5f9e7740f621929f7a58d7daaf.1698261255.git.edwin.torok@cloud.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 From: Edwin Török Depends on the other x86/PMUv4 patches: "x86/PMUv4: disable intercept for PERF_GLOBAL_STATUS" "x86/PMUv4: IA32_PERF_GLOBAL_{STATUS_SET, INUSE} support" "x86/PMUv4: support LBR_Frz and CTR_Frz" Signed-off-by: Edwin Török --- xen/arch/x86/include/asm/vpmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/include/asm/vpmu.h b/xen/arch/x86/include/asm/vpmu.h index 79f7f4a09e..eaededadb5 100644 --- a/xen/arch/x86/include/asm/vpmu.h +++ b/xen/arch/x86/include/asm/vpmu.h @@ -74,7 +74,7 @@ struct vpmu_struct { #define VPMU_CPU_HAS_DS 0x1000 /* Has Debug Store */ #define VPMU_CPU_HAS_BTS 0x2000 /* Has Branch Trace Store */ -#define VPMU_VERSION_MAX 0x3 +#define VPMU_VERSION_MAX 0x4 #define VPMU_VERSION_MAX_SUPPORTED 0x5 static inline void vpmu_set(struct vpmu_struct *vpmu, const u32 mask)