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>
Showing
- arch/riscv/include/asm/sbi.h 1 addition, 0 deletionsarch/riscv/include/asm/sbi.h
- arch/riscv/kvm/Makefile 1 addition, 0 deletionsarch/riscv/kvm/Makefile
- arch/riscv/kvm/vcpu.c 23 additions, 0 deletionsarch/riscv/kvm/vcpu.c
- arch/riscv/kvm/vcpu_sbi.c 4 additions, 0 deletionsarch/riscv/kvm/vcpu_sbi.c
- arch/riscv/kvm/vcpu_sbi_hsm.c 105 additions, 0 deletionsarch/riscv/kvm/vcpu_sbi_hsm.c
Please register or sign in to comment