]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: KVM: Add SBI HSM extension in KVM
authorAtish Patra <atish.patra@wdc.com>
Thu, 18 Nov 2021 08:39:12 +0000 (00:39 -0800)
committerAnup Patel <anup@brainfault.org>
Thu, 6 Jan 2022 09:42:47 +0000 (15:12 +0530)
commit3e1d86569c210ec64398091bd035e539f0e26e81
tree1ecb3115039784c60c92d0d9ea9194166b28af61
parent5f862df5585cf9d74b97ecaf3078243591f1009f
RISC-V: KVM: Add SBI HSM extension in KVM

SBI HSM extension allows OS to start/stop harts any time. It also allows
ordered booting of harts instead of random booting.

Implement SBI HSM exntesion and designate the vcpu 0 as the boot vcpu id.
All other non-zero non-booting vcpus should be brought up by the OS
implementing HSM extension. If the guest OS doesn't implement HSM
extension, only single vcpu will be available to OS.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
arch/riscv/include/asm/sbi.h
arch/riscv/kvm/Makefile
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vcpu_sbi.c
arch/riscv/kvm/vcpu_sbi_hsm.c [new file with mode: 0644]