RISC-V: paravirt: Implement steal-time support
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 20 Dec 2023 16:00:16 +0000 (17:00 +0100)
committerAnup Patel <anup@brainfault.org>
Sat, 30 Dec 2023 05:56:04 +0000 (11:26 +0530)
commitfdf68acccfc6af9497c34ee411d89af13b6516ed
tree480f14b82e359f2646221f3e0caa2dc1ef5dccfa
parent6cfc624576a64145b1d6d3d48de7161a7505f403
RISC-V: paravirt: Implement steal-time support

When the SBI STA extension exists we can use it to implement
paravirt steal-time support. Fill in the empty pv-time functions
with an SBI STA implementation and add the Kconfig knobs allowing
it to be enabled.

Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/Kconfig
arch/riscv/kernel/paravirt.c