All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anup Patel <apatel@ventanamicro.com>
To: kvm-riscv@lists.infradead.org
Subject: [PATCH kvmtool 4/5] riscv: Add Sstc extension support
Date: Mon, 15 Aug 2022 15:43:24 +0530	[thread overview]
Message-ID: <20220815101325.477694-5-apatel@ventanamicro.com> (raw)
In-Reply-To: <20220815101325.477694-1-apatel@ventanamicro.com>

From: Atish Patra <atishp@rivosinc.com>

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>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
---
 riscv/fdt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/riscv/fdt.c b/riscv/fdt.c
index eb7851e..aeba042 100644
--- a/riscv/fdt.c
+++ b/riscv/fdt.c
@@ -18,6 +18,7 @@ struct isa_ext_info {
 
 struct isa_ext_info isa_info_arr[] = {
 	{"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT},
+	{"sstc", KVM_RISCV_ISA_EXT_SSTC},
 };
 
 static void dump_fdt(const char *dtb_file, void *fdt)
-- 
2.34.1



WARNING: multiple messages have this Message-ID (diff)
From: Anup Patel <apatel@ventanamicro.com>
To: Will Deacon <will@kernel.org>,
	julien.thierry.kdev@gmail.com, maz@kernel.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	Atish Patra <atishp@atishpatra.org>,
	Alistair Francis <Alistair.Francis@wdc.com>,
	Anup Patel <anup@brainfault.org>,
	kvm@vger.kernel.org, kvm-riscv@lists.infradead.org,
	Atish Patra <atishp@rivosinc.com>,
	Anup Patel <apatel@ventanamicro.com>
Subject: [PATCH kvmtool 4/5] riscv: Add Sstc extension support
Date: Mon, 15 Aug 2022 15:43:24 +0530	[thread overview]
Message-ID: <20220815101325.477694-5-apatel@ventanamicro.com> (raw)
In-Reply-To: <20220815101325.477694-1-apatel@ventanamicro.com>

From: Atish Patra <atishp@rivosinc.com>

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>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
---
 riscv/fdt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/riscv/fdt.c b/riscv/fdt.c
index eb7851e..aeba042 100644
--- a/riscv/fdt.c
+++ b/riscv/fdt.c
@@ -18,6 +18,7 @@ struct isa_ext_info {
 
 struct isa_ext_info isa_info_arr[] = {
 	{"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT},
+	{"sstc", KVM_RISCV_ISA_EXT_SSTC},
 };
 
 static void dump_fdt(const char *dtb_file, void *fdt)
-- 
2.34.1


  parent reply	other threads:[~2022-08-15 10:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 10:13 [PATCH kvmtool 0/5] KVMTOOL RISC-V Svpbmt and Sstc Support Anup Patel
2022-08-15 10:13 ` Anup Patel
2022-08-15 10:13 ` [PATCH kvmtool 1/5] Update UAPI headers based on Linux-6.0-rc1 Anup Patel
2022-08-15 10:13   ` Anup Patel
2022-08-15 10:13 ` [PATCH kvmtool 2/5] riscv: Append ISA extensions to the device tree Anup Patel
2022-08-15 10:13   ` Anup Patel
2022-08-15 10:13 ` [PATCH kvmtool 3/5] riscv: Add Svpbmt extension support Anup Patel
2022-08-15 10:13   ` Anup Patel
2022-08-15 10:13 ` Anup Patel [this message]
2022-08-15 10:13   ` [PATCH kvmtool 4/5] riscv: Add Sstc " Anup Patel
2022-08-15 10:13 ` [PATCH kvmtool 5/5] riscv: Fix serial0 alias path Anup Patel
2022-08-15 10:13   ` Anup Patel
2022-08-31  9:59 ` [PATCH kvmtool 0/5] KVMTOOL RISC-V Svpbmt and Sstc Support Anup Patel
2022-08-31  9:59   ` Anup Patel
2022-09-22 12:45 ` Will Deacon
2022-09-22 12:45   ` Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220815101325.477694-5-apatel@ventanamicro.com \
    --to=apatel@ventanamicro.com \
    --cc=kvm-riscv@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.