diff options
author | Radim Krčmář <rkrcmar@ventanamicro.com> | 2025-04-03 14:25:21 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2025-05-21 07:04:49 +0300 |
commit | a1c66842f1b5a054af2f3d9b4d12b8674f5f558f (patch) | |
tree | 30fa89d5dc78bcd425af0030e000916fda6fe3f7 /arch/riscv/include | |
parent | 9ffecf04144db5517eae204e65b7cde75ac920e0 (diff) | |
download | linux-a1c66842f1b5a054af2f3d9b4d12b8674f5f558f.tar.xz |
KVM: RISC-V: refactor sbi reset request
The same code is used twice and SBI reset sets only two variables.
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Link: https://lore.kernel.org/r/20250403112522.1566629-5-rkrcmar@ventanamicro.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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/kvm_vcpu_sbi.h b/arch/riscv/include/asm/kvm_vcpu_sbi.h index 4ed6203cdd30..da28235939d1 100644 --- a/arch/riscv/include/asm/kvm_vcpu_sbi.h +++ b/arch/riscv/include/asm/kvm_vcpu_sbi.h @@ -55,6 +55,8 @@ 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); +void kvm_riscv_vcpu_sbi_request_reset(struct kvm_vcpu *vcpu, + unsigned long pc, unsigned long a1); int kvm_riscv_vcpu_sbi_return(struct kvm_vcpu *vcpu, struct kvm_run *run); int kvm_riscv_vcpu_set_reg_sbi_ext(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg); |