From nobody Wed Nov 27 18:30:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1698075633; cv=none; d=zohomail.com; s=zohoarc; b=f/0kIVDoPh7ZR6GTO38BHs0PQOBh8kZov1+vGbdwksyzsF/MCEi94EXlY2uWWp3QC5NuFZ9pusmKmh0yWBBq3qZNYxu06MflATwuUsKUUQ9Yel8qnLduKORSNznNjwL/uzzZHCfMmjDEv0BPOKdBQURw9MMNzv6PrUj2RvGkgAs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698075633; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hFkyNavH6j4N1w2bNPF1bB24Zbhbzj0u+GAF/+GVrTs=; b=b2gntCrPdF2Vc1mIY1C/5Nd+jyMQG9QryQx6040xaQKMHLVmnxL3BilL2qZZAKxojbQtVytVwRMjwYRgxFr3EEOlUX1Yb5w9eUUdDIk+USwCcWz+q5Dgd6THNrqJL5qkPG+KsJttfImhUVcDbXjeFapdIk8H1eB3tn85PFJjVu0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1698075632992834.0486934561129; Mon, 23 Oct 2023 08:40:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qux28-0000Z2-CZ; Mon, 23 Oct 2023 11:40:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qux1v-0000Wj-PQ for qemu-devel@nongnu.org; Mon, 23 Oct 2023 11:39:47 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qux1t-0003qu-Vh for qemu-devel@nongnu.org; Mon, 23 Oct 2023 11:39:47 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1cacde97002so17732815ad.2 for ; Mon, 23 Oct 2023 08:39:45 -0700 (PDT) Received: from grind.. ([191.255.2.33]) by smtp.gmail.com with ESMTPSA id k20-20020a170902ba9400b001b891259eddsm6053063pls.197.2023.10.23.08.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698075584; x=1698680384; darn=nongnu.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=hFkyNavH6j4N1w2bNPF1bB24Zbhbzj0u+GAF/+GVrTs=; b=jqvQJz50DlF05xvOzInmEmrSBTCjoBuMBQPUyMXQHjsDUbnBquNsufvT6KgqGAKKcP ZIUOzEmoJAqUOb2DR1lEawuzkebPW2oI+KfAPSxUDvHoPFkcq/kjXKlVQUM6qlB0QidJ DluIrdycuav4Vaa8MawehT+qyARGHqwjXkaVr3muGW64dVBroH55ExbXvrW/MlGCM9sf griZKz6GQOkCQ+8ZJ41NiW/AX2GmPSE3rfs6Re268ejeiPzZSaIGUR0hB3iDX58kawV6 FTg2bv7FAgZKddqPAFDd1muqnNX4PH85E4D0bdfHjHA1aVxBz6sAIeo8lBBxFLHTGk3u 3Ohw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698075584; x=1698680384; 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=hFkyNavH6j4N1w2bNPF1bB24Zbhbzj0u+GAF/+GVrTs=; b=YisF9mSpnDZ72jAiH2R5FqeOiyXPuGyL8TbcfV1ivfQAtBCtYQ02PYCZsq/kspvnK0 Ex78I7eM78qd33aCguh5yHGpP3Hr/sZiMwab9EGQp6XcKyw/W77OJmOv4ruhunzLT98V bhRVt6BpB4fj46TlLAjGBqLHWENYJhxoX93o9gc6zbH5uzX3AjttPT+F6TO/bhWnUoes 33gkdEnAUmT7sCqjJX+Dl+sW4VkR1gOAVF95TpuL+6UoNaqjQbxcSUmjs0tDOXeNweqR NM6dpnZeIudcX0hchPhtGhRMV9Du4qH4J/U0BRupk3Fe8P/ESjXLCuHvIlby3QPSvFxs R3oA== X-Gm-Message-State: AOJu0YyP3OANukPvWE/+dVWOwO6Ma26UEQ4C9hV6ug/F324eVHgalDrC uUtF6vlkIvHLfGgN5Re4qTphlO06Rh6NOulwG0s= X-Google-Smtp-Source: AGHT+IFeqHXouFucr5wfKpd+LkoHuGbhaYCGufdXUc3Kcb3GZAHWGqAec8+zbPTLe7SDAFiizfisIg== X-Received: by 2002:a17:903:1c1:b0:1c3:bc7b:8805 with SMTP id e1-20020a17090301c100b001c3bc7b8805mr8333449plh.52.1698075584224; Mon, 23 Oct 2023 08:39:44 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, bmeng@tinylab.org, liweiwei@iscas.ac.cn, zhiwei_liu@linux.alibaba.com, palmer@rivosinc.com, Daniel Henrique Barboza Subject: [PATCH v3 4/4] target/riscv/kvm: add zihpm reg Date: Mon, 23 Oct 2023 12:39:27 -0300 Message-ID: <20231023153927.435083-5-dbarboza@ventanamicro.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231023153927.435083-1-dbarboza@ventanamicro.com> References: <20231023153927.435083-1-dbarboza@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=dbarboza@ventanamicro.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ventanamicro.com) X-ZM-MESSAGEID: 1698075635854100001 Content-Type: text/plain; charset="utf-8" Add zihpm support in the KVM driver now that QEMU supports it. This reg was added in Linux 6.6. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/kvm/kvm-cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c index 0a8be40786..6d1c0a7915 100644 --- a/target/riscv/kvm/kvm-cpu.c +++ b/target/riscv/kvm/kvm-cpu.c @@ -230,6 +230,7 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] =3D { KVM_EXT_CFG("zicboz", ext_zicboz, KVM_RISCV_ISA_EXT_ZICBOZ), KVM_EXT_CFG("zicntr", ext_zicntr, KVM_RISCV_ISA_EXT_ZICNTR), KVM_EXT_CFG("zihintpause", ext_zihintpause, KVM_RISCV_ISA_EXT_ZIHINTPA= USE), + KVM_EXT_CFG("zihpm", ext_zihpm, KVM_RISCV_ISA_EXT_ZIHPM), KVM_EXT_CFG("zbb", ext_zbb, KVM_RISCV_ISA_EXT_ZBB), KVM_EXT_CFG("ssaia", ext_ssaia, KVM_RISCV_ISA_EXT_SSAIA), KVM_EXT_CFG("sstc", ext_sstc, KVM_RISCV_ISA_EXT_SSTC), --=20 2.41.0