mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 17:14:40 +08:00
3e1d86569c
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>
27 lines
499 B
Makefile
27 lines
499 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for RISC-V KVM support
|
|
#
|
|
|
|
ccflags-y += -I $(srctree)/$(src)
|
|
|
|
include $(srctree)/virt/kvm/Makefile.kvm
|
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
|
|
kvm-y += main.o
|
|
kvm-y += vm.o
|
|
kvm-y += vmid.o
|
|
kvm-y += tlb.o
|
|
kvm-y += mmu.o
|
|
kvm-y += vcpu.o
|
|
kvm-y += vcpu_exit.o
|
|
kvm-y += vcpu_fp.o
|
|
kvm-y += vcpu_switch.o
|
|
kvm-y += vcpu_sbi.o
|
|
kvm-$(CONFIG_RISCV_SBI_V01) += vcpu_sbi_v01.o
|
|
kvm-y += vcpu_sbi_base.o
|
|
kvm-y += vcpu_sbi_replace.o
|
|
kvm-y += vcpu_sbi_hsm.o
|
|
kvm-y += vcpu_timer.o
|