diff options
author | Anup Patel <apatel@ventanamicro.com> | 2022-01-31 10:29:31 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-03-11 19:02:29 +0530 |
commit | 4b11d86571c44738f5ef12fcfac2ee36f998cf23 (patch) | |
tree | 17777b48d4b91da4f2ccb4c66ad2542ec55d10dc /arch/riscv/include | |
parent | a03faf01a5e32012172a41f5f9d5f02d1cc93ccf (diff) | |
download | lwn-4b11d86571c44738f5ef12fcfac2ee36f998cf23.tar.gz lwn-4b11d86571c44738f5ef12fcfac2ee36f998cf23.zip |
RISC-V: KVM: Add common kvm_riscv_vcpu_sbi_system_reset() function
We rename kvm_sbi_system_shutdown() to kvm_riscv_vcpu_sbi_system_reset()
and move it to vcpu_sbi.c so that it can be shared by SBI v0.1 shutdown
and SBI v0.3 SRST extension.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r-- | arch/riscv/include/asm/kvm_vcpu_sbi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/kvm_vcpu_sbi.h b/arch/riscv/include/asm/kvm_vcpu_sbi.h index 04cd81f2ab5b..83d6d4d2b1df 100644 --- a/arch/riscv/include/asm/kvm_vcpu_sbi.h +++ b/arch/riscv/include/asm/kvm_vcpu_sbi.h @@ -28,6 +28,9 @@ struct kvm_vcpu_sbi_extension { }; void kvm_riscv_vcpu_sbi_forward(struct kvm_vcpu *vcpu, struct kvm_run *run); +void kvm_riscv_vcpu_sbi_system_reset(struct kvm_vcpu *vcpu, + struct kvm_run *run, + u32 type, u64 flags); const struct kvm_vcpu_sbi_extension *kvm_vcpu_sbi_find_ext(unsigned long extid); #endif /* __RISCV_KVM_VCPU_SBI_H__ */ |