From nobody Wed Nov 27 19:49:30 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=1698075651; cv=none; d=zohomail.com; s=zohoarc; b=fz0GOqg3liRXYYrS9UTZg6eiu4UeCVx17FRgaHl6nXxAnSa5+uaZFXlLJNbk1JYEZMJdHt1xMQnoF9B60A0RmQ9e/zQtXvr/bHRk/teJgXGZcRqUu41fcB771Tx7BYf5V4V3gHbX9phT5asVF6n92gOAwipDwWME540WH1aLtMM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698075651; 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=FrJFBp0QUtJN2hNlPZJWGh/625/6+NhPTSOe44ahUpo=; b=GwcxmaGySiprRUrLEMnjzBSUqNvOcUHi4rPa8H2Ke9B81sJIK+mBcDgIWSQX3Gl74lW/Mn5Ls+EyWPGc5pWk9yInYNWc02bSVPqNu2ffIFR0nKp26ppuG5ZqPZqRqtbPU7J0vUGK+0pnPPgaEBsAhE30TqAOtBEKwttie6oaSF0= 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 1698075651030703.3775173696168; Mon, 23 Oct 2023 08:40:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qux1r-0000TZ-Bo; Mon, 23 Oct 2023 11:39:43 -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 1qux1q-0000Sw-3g for qemu-devel@nongnu.org; Mon, 23 Oct 2023 11:39:42 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qux1o-0003q7-ES for qemu-devel@nongnu.org; Mon, 23 Oct 2023 11:39:41 -0400 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1caa371dcd8so20690915ad.0 for ; Mon, 23 Oct 2023 08:39:40 -0700 (PDT) Received: from grind.. ([191.255.2.33]) by smtp.gmail.com with ESMTPSA id k20-20020a170902ba9400b001b891259eddsm6053063pls.197.2023.10.23.08.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698075579; x=1698680379; 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=FrJFBp0QUtJN2hNlPZJWGh/625/6+NhPTSOe44ahUpo=; b=N1gsTn+rgkVfVjMf4Q88/oEDQhCeFMue605emFrE+Y628XuXic4KZzjmTcV2yKpCxt XN/yNMRKR4457xugGRmSiRP6W4D8buCP0hVFvYGbsmGcRmV1qWEAzOU1LBBkqOh/BApH 4+jafxYwi7gKAwc9YUq5eVkADlTdPyM4bF6ufYImYVuZarbF7TsK7gNy+rV0fq228Y8A VLEdc9CeLh7ATE0Xwp8ZADGcZeY+/9w8TJor6qpD2MGpFepsxq8pGz0w2fiX17wK1X4B zmHedu+DxSYcraQYbiigWfraQfunhWq1E/0Q3u32FlQrOcNJcVkfNaB8oly/a2cFDqoO sY6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698075579; x=1698680379; 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=FrJFBp0QUtJN2hNlPZJWGh/625/6+NhPTSOe44ahUpo=; b=efKnRE+vT0DKwVv3VMzs6zNuKgn6Rs+vclIworooTYCeey1qIgbD+40fQb0yqGt/zb KYTdmjIR2AXwKKrsJ0GL3/gRdISRy2NwZT5ArFv3b5EAxsEP0djkUKuqNa1U+OrRyH9x aEymfABRC+wUNoKC8qHa/jEvfpky/xJfrNS9eug3lQUqyIyEtlRDN2s2o87XdrpW7yQZ lv8s1d+rXE/qQVlMFAx8C9wJKJ7RVuJXplvax9iZ4NXZETGfmLnooaLkYY9TuWArNDGY VMm+/YaIW6ZXimbr7iT7AQhJJ0Yzisj5LK8Bex8l4gAOjoGOU9f4jfFj4JkullrHW17d SSdg== X-Gm-Message-State: AOJu0Yw5TMz14EKQ9LOcNp5eXrPrwY41C0CCtJ6Gtkw3VouiaEn8d/aK qpnIGXBrkyvuzZYBWwbWZiOGox6UfVjaPKfDigQ= X-Google-Smtp-Source: AGHT+IHhezE0l9D02XEAc3ecB3fZ/mxUINpRgfEdoO+TjRed5bXgTiDDgTyUhXEIo4BN3gcVfl+ngg== X-Received: by 2002:a17:903:294e:b0:1ca:5a82:e582 with SMTP id li14-20020a170903294e00b001ca5a82e582mr7701849plb.22.1698075578684; Mon, 23 Oct 2023 08:39:38 -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 2/4] target/riscv/kvm: add zicntr reg Date: Mon, 23 Oct 2023 12:39:25 -0300 Message-ID: <20231023153927.435083-3-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::632; envelope-from=dbarboza@ventanamicro.com; helo=mail-pl1-x632.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: 1698075652706100003 Content-Type: text/plain; charset="utf-8" Add zicntr 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 cf98071f92..0a8be40786 100644 --- a/target/riscv/kvm/kvm-cpu.c +++ b/target/riscv/kvm/kvm-cpu.c @@ -228,6 +228,7 @@ static void kvm_riscv_update_cpu_misa_ext(RISCVCPU *cpu= , CPUState *cs) static KVMCPUConfig kvm_multi_ext_cfgs[] =3D { KVM_EXT_CFG("zicbom", ext_zicbom, KVM_RISCV_ISA_EXT_ZICBOM), 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("zbb", ext_zbb, KVM_RISCV_ISA_EXT_ZBB), KVM_EXT_CFG("ssaia", ext_ssaia, KVM_RISCV_ISA_EXT_SSAIA), --=20 2.41.0