Message ID | 20220304101023.764631-4-atishp@rivosinc.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=UVPRag+c; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rivosinc-com.20210112.gappssmtp.com header.i=@rivosinc-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=5Rc80sbO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K93XD3G6Bz9sG7 for <incoming@patchwork.ozlabs.org>; Fri, 4 Mar 2022 21:10:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rLO17EHsN+eAevIgMwUgfo1o2ppieWRXxBFk8KxsO9Q=; b=UVPRag+cSAqA6i JvSQf1VU9TzIWWPWn/BDIwujyAGruzY/RNYIRK6BfwjMz8E4Crqa58sHcZaJVNSDeXCzK2jOg4O7b Dm2mzwKc6Qtt+NtDteGjeAQ/2KEp4Da0HdlZrntSGKTiuPcOmnnxit1RjqcY4RDuioL5XJcT+2vGn hSEqTrWZJcJgMenFZkuZsLh7+0V+32tGWLS4SeTaDxU+ru1AooD3Qgr3LltGO5JL9Sjhsk9mN4rUW 1WiVG6hNT8K+6mcnZ7lWjZMPgmJ/zc15VMr+JsUf4t5aJonoRi9oc4HtykQQIKrsQItsZeo/a6kqg b2zP4kzqWzu4rv2ee1lA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ4td-009WUf-Vr; Fri, 04 Mar 2022 10:10:49 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ4tZ-009WQv-2M for kvm-riscv@lists.infradead.org; Fri, 04 Mar 2022 10:10:47 +0000 Received: by mail-oi1-x22e.google.com with SMTP id a6so7365699oid.9 for <kvm-riscv@lists.infradead.org>; Fri, 04 Mar 2022 02:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j4K802Y2y81gZsHnG8n5Upy6Gh/ZJaqULK4VvQ0lL1Y=; b=5Rc80sbO6imTYOal9B4/lAuGi6JYMVqmYfmLM8mb7Hqgr6t+mFbugXVIpkpuhQ1WmH Jxuz8s32PIz81a63RjuWWLotQcEWM1oM8QoY0Vqw0W811ORR6C7yQ4karCDuPfXPaeyd 0xWqpXEgdbGYgjKpNl5e2pIpjQPPOFYd4TEzZ8rwHwTSuVcb3exLUaP7D53njeedYIcI bknCk4UdF7GVYAXJGyfpq9tovbeU1a9QADKY3r5eY4Edx2/rVUKNCUopgj2NTxvKgLfQ sECicwicnxpBIPlGjj+qpzagKEEtnUQW4wbo4YDdAcvJCBAGDLei5IeoYNBVE30VGTDn wRqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j4K802Y2y81gZsHnG8n5Upy6Gh/ZJaqULK4VvQ0lL1Y=; b=b9REXmfHDd90vrs4U0C3kmmCZjM/Mnd0GkorVaXwNBapQ6hEce1oLKkWJaGwtQg7Od Q5ipzldA0RHow0V8l0/3OGuwTfPsfpM0xHc6ON6jVuhsPuzfS3yjIJC2T3b1l2XJGqA9 bOVc3Z6z9rwC8anY/eHF4uajbcUfQSfzDinon63rrOvy4RffwYhrVHH6iLh9x2qvkZhc cQtj8sljO0lxEMDowf1uKANoKyG8hgVWZcrDTJBOyPR8VCtj6E2Rg64p9pwEq2p6tXkR tlgkg23xkZNdnyiJFI4n+txjDtlWLu0Inbh+JNmSBWwrWnfYgy56ncdqE9QBY667Hmrh 9YUg== X-Gm-Message-State: AOAM5322Z2U3W8HYRi0OFpDnmxdk9uD5cZZvr3mbdrO4fhj71L6JDVp2 y9AooUsiKtBHUeHEl7UHOtfR7DtCvmxA0Q== X-Google-Smtp-Source: ABdhPJzfIQzVhVmvRiecIEwCqv8Dyk4654/cCdYq+UuzDs4cwgHCr4IGnDomEUsrDCKXIFlnySKnsQ== X-Received: by 2002:a05:6808:1446:b0:2d5:281f:9cda with SMTP id x6-20020a056808144600b002d5281f9cdamr8698391oiv.13.1646388644171; Fri, 04 Mar 2022 02:10:44 -0800 (PST) Received: from rivos-atish.. (adsl-70-228-75-190.dsl.akrnoh.ameritech.net. [70.228.75.190]) by smtp.gmail.com with ESMTPSA id m26-20020a05680806da00b002d797266870sm2358769oih.9.2022.03.04.02.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 02:10:43 -0800 (PST) From: Atish Patra <atishp@rivosinc.com> To: Will Deacon <will@kernel.org>, julien.thierry.kdev@gmail.com, maz@kernel.org Cc: Atish Patra <atishp@rivosinc.com>, Paolo Bonzini <pbonzini@redhat.com>, Atish Patra <atishp@atishpatra.org>, Anup Patel <anup@brainfault.org>, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Subject: [RFC PATCH kvmtool 3/3] riscv: Add Sstc extension support Date: Fri, 4 Mar 2022 02:10:23 -0800 Message-Id: <20220304101023.764631-4-atishp@rivosinc.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220304101023.764631-1-atishp@rivosinc.com> References: <20220304101023.764631-1-atishp@rivosinc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220304_021045_172050_1932573B X-CRM114-Status: GOOD ( 11.35 ) X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sstc extension allows the guest OS to program the timer directly without relying on the SBI call. The kernel detects the presence of Sstc extnesion from the riscv,isa DT property. Add the Sstc extensi [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:22e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <kvm-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/kvm-riscv>, <mailto:kvm-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/kvm-riscv/> List-Post: <mailto:kvm-riscv@lists.infradead.org> List-Help: <mailto:kvm-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/kvm-riscv>, <mailto:kvm-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kvm-riscv" <kvm-riscv-bounces@lists.infradead.org> Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Add Sstc extension support
|
expand
|
diff --git a/riscv/fdt.c b/riscv/fdt.c index 2e69bd219fe5..a2bea5e17749 100644 --- a/riscv/fdt.c +++ b/riscv/fdt.c @@ -18,6 +18,7 @@ struct isa_ext_info { }; struct isa_ext_info isa_info_arr[] = { + {"sstc", KVM_RISCV_ISA_EXT_SSTC}, }; static void dump_fdt(const char *dtb_file, void *fdt) diff --git a/riscv/include/asm/kvm.h b/riscv/include/asm/kvm.h index e01678aa2a55..c7c313272c0b 100644 --- a/riscv/include/asm/kvm.h +++ b/riscv/include/asm/kvm.h @@ -97,6 +97,7 @@ enum KVM_RISCV_ISA_EXT_ID { KVM_RISCV_ISA_EXT_H, KVM_RISCV_ISA_EXT_I, KVM_RISCV_ISA_EXT_M, + KVM_RISCV_ISA_EXT_SSTC, KVM_RISCV_ISA_EXT_MAX, };
Sstc extension allows the guest OS to program the timer directly without relying on the SBI call. The kernel detects the presence of Sstc extnesion from the riscv,isa DT property. Add the Sstc extension to the device tree if it is supported by the host. Signed-off-by: Atish Patra <atishp@rivosinc.com> --- riscv/fdt.c | 1 + riscv/include/asm/kvm.h | 1 + 2 files changed, 2 insertions(+)