From nobody Tue Feb 10 11:23:28 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1677484657; cv=none; d=zohomail.com; s=zohoarc; b=WUCgFOKt4FN2iMYDGCxa8GSDlvPnArKayHq0enttJPMIgCbPG2ATsWhd0dTEMnlci8mo53F7Pixvpw6+JH3AWVW6S0WQhy+pF/7/82xwDtIpNn7DZbhvPvFlpmLuYWMmAKUQtOVmS7g0mF88C+vkm7SidS5sgz5iSN0eo8a4Xq8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677484657; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=pnLzBk1wGHculJohEmqu0NjSNnMRtRwNM1eASmcyK7g=; b=Za9whROTfYZZDGTUzsdeW6T9CjYlLgheFa6OdhDRLp82Gue+VVHGHlJQ3ClEasUwOASjs4sSGbCVh4jYMqouDiWTBCMjOBp12uzC26xKxB8uPC5pgiDGU1d/ij0pJ9lnceQYCAz1HmWQDt0tN8cJ6vlijai3Wc/sFe+7y2MVRK8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1677484657282446.4000257840379; Sun, 26 Feb 2023 23:57:37 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.502218.773914 (Exim 4.92) (envelope-from ) id 1pWYNa-00017w-K8; Mon, 27 Feb 2023 07:57:02 +0000 Received: by outflank-mailman (output) from mailman id 502218.773914; Mon, 27 Feb 2023 07:57:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pWYNa-000154-Ef; Mon, 27 Feb 2023 07:57:02 +0000 Received: by outflank-mailman (input) for mailman id 502218; Mon, 27 Feb 2023 07:57:01 +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 1pWYNZ-0000zz-Lb for xen-devel@lists.xenproject.org; Mon, 27 Feb 2023 07:57:01 +0000 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [2a00:1450:4864:20::52d]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 50592f13-b674-11ed-88bb-e56d68cac8db; Mon, 27 Feb 2023 08:57:00 +0100 (CET) Received: by mail-ed1-x52d.google.com with SMTP id ec43so21964294edb.8 for ; Sun, 26 Feb 2023 23:57:00 -0800 (PST) Received: from uni.router.wind (adsl-209.109.242.226.tellas.gr. [109.242.226.209]) by smtp.googlemail.com with ESMTPSA id b23-20020a50ccd7000000b0049ef70a2894sm2788272edj.38.2023.02.26.23.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 23:56:58 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 50592f13-b674-11ed-88bb-e56d68cac8db DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=pnLzBk1wGHculJohEmqu0NjSNnMRtRwNM1eASmcyK7g=; b=XpIwuJxkvMyIxXOrltJKdUm3iZn63kgkpjcD+ADaAvqH7jhlg5gOI7M44LeTbWoYTz NAsJmfgDMVnY9LXB5A2VKokOkIKxEjFZ5VtSWOXa7ht0DHPEFTxApGg9XqLO/I6a5eyk wNdrRI8WiM0jFIqlDaXvCeq2W/qkGQ3G1xyAgEB6n/A+wFCMaF8qGcOR/WBOGs2omKCS aWjAFKGv2IXWsCxyR/M0AO1lUHj/454e+qezdGA7DfbIx5vwg/lIL/szuG/lYUQuWUBD nsU6lNJqq0cCAlDIaloM+a0SiiJJRBgBGoMxE6sgPmg1bvrnBH821XPM3TjSX2htVE1t f9mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=pnLzBk1wGHculJohEmqu0NjSNnMRtRwNM1eASmcyK7g=; b=8Ixu5N92oRY1V09pK6OrUeSAUU39IHa3UQzQ7h88Cd8MWEUu/KlfufDPGtUK+K+TL3 ir0wg2toGJTxn41QCKeIqLf2k3sy8RLCQkdqkpeG/S9+iTGFutSERkfv3yRPKWjt4rx5 BTvQripn/W/43K9olZzKzrtyLVW9Qy3oUYNHDVfCbni8P3+jD96Rm7mCJXiRce19W30c nOZBslPi+8Qct/7fDBsb/Tj1uAgNzXH/XvQ6OpuwZUtA2IQQxaXPVC6Dp3ltku/tKNqe RVWo4uGl4RYbUeAIDQg14+bXqWpJjdBon9/18YfWlxUXX1KWOcbuw175n9o4dANZ1fqq HE7Q== X-Gm-Message-State: AO0yUKVkeUhaawbS0MMhMiLqnAc6cvR/UzoV5uF3p3bs4zjXwUg8hhgS YkYLaOLuzfnN8kxJIi7kU9/pa+JIi7mU2Q== X-Google-Smtp-Source: AK7set9bGy/1HtlnFiZuZBv3paHLqzPWNlh8gUpseIREAC0+E5QaeISn+/4aHvSrRaJP/iEeWMSubQ== X-Received: by 2002:a05:6402:e04:b0:4ac:d90e:92b with SMTP id h4-20020a0564020e0400b004acd90e092bmr9246366edh.10.1677484619198; Sun, 26 Feb 2023 23:56:59 -0800 (PST) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu , Jun Nakajima , Kevin Tian Subject: [PATCH 1/4] x86/vpmu: rename {svm,vmx}_vpmu_initialise to {amd,core2}_vpmu_initialise Date: Mon, 27 Feb 2023 09:56:49 +0200 Message-Id: <20230227075652.3782973-2-burzalodowa@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230227075652.3782973-1-burzalodowa@gmail.com> References: <20230227075652.3782973-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1677484659517100002 Content-Type: text/plain; charset="utf-8" PMU virtualization is not dependent on the hardware virtualization support. Rename {svm,vmx}_vpmu_initialise to {amd,core2}_vpmu_initialise because the {svm,vmx} prefix is misleading. Take the opportunity to remove the also misleading comment stating that vpmu is specific to hvm guests, and correct the filename. No functional change intended. Signed-off-by: Xenia Ragiadakou Acked-by: Jan Beulich --- xen/arch/x86/cpu/vpmu_amd.c | 6 +++--- xen/arch/x86/cpu/vpmu_intel.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/cpu/vpmu_amd.c b/xen/arch/x86/cpu/vpmu_amd.c index 58794a16f0..9df739aa3f 100644 --- a/xen/arch/x86/cpu/vpmu_amd.c +++ b/xen/arch/x86/cpu/vpmu_amd.c @@ -1,5 +1,5 @@ /* - * vpmu.c: PMU virtualization for HVM domain. + * vpmu_amd.c: AMD specific PMU virtualization. * * Copyright (c) 2010, Advanced Micro Devices, Inc. * Parts of this code are Copyright (c) 2007, Intel Corporation @@ -480,7 +480,7 @@ static void cf_check amd_vpmu_dump(const struct vcpu *v) } } =20 -static int cf_check svm_vpmu_initialise(struct vcpu *v) +static int cf_check amd_vpmu_initialise(struct vcpu *v) { struct xen_pmu_amd_ctxt *ctxt; struct vpmu_struct *vpmu =3D vcpu_vpmu(v); @@ -527,7 +527,7 @@ static int cf_check amd_allocate_context(struct vcpu *v) #endif =20 static const struct arch_vpmu_ops __initconst_cf_clobber amd_vpmu_ops =3D { - .initialise =3D svm_vpmu_initialise, + .initialise =3D amd_vpmu_initialise, .do_wrmsr =3D amd_vpmu_do_wrmsr, .do_rdmsr =3D amd_vpmu_do_rdmsr, .do_interrupt =3D amd_vpmu_do_interrupt, diff --git a/xen/arch/x86/cpu/vpmu_intel.c b/xen/arch/x86/cpu/vpmu_intel.c index a8df52579d..bcfa187a14 100644 --- a/xen/arch/x86/cpu/vpmu_intel.c +++ b/xen/arch/x86/cpu/vpmu_intel.c @@ -1,5 +1,5 @@ /* - * vpmu_core2.c: CORE 2 specific PMU virtualization for HVM domain. + * vpmu_intel.c: CORE 2 specific PMU virtualization. * * Copyright (c) 2007, Intel Corporation. * @@ -833,7 +833,7 @@ static void cf_check core2_vpmu_destroy(struct vcpu *v) vpmu_clear(vpmu); } =20 -static int cf_check vmx_vpmu_initialise(struct vcpu *v) +static int cf_check core2_vpmu_initialise(struct vcpu *v) { struct vpmu_struct *vpmu =3D vcpu_vpmu(v); u64 msr_content; @@ -898,7 +898,7 @@ static int cf_check vmx_vpmu_initialise(struct vcpu *v) } =20 static const struct arch_vpmu_ops __initconst_cf_clobber core2_vpmu_ops = =3D { - .initialise =3D vmx_vpmu_initialise, + .initialise =3D core2_vpmu_initialise, .do_wrmsr =3D core2_vpmu_do_wrmsr, .do_rdmsr =3D core2_vpmu_do_rdmsr, .do_interrupt =3D core2_vpmu_do_interrupt, --=20 2.37.2