target/loongarch: Implement kvm_arch_init function
authorTianrui Zhao <zhaotianrui@loongson.cn>
Fri, 5 Jan 2024 07:58:00 +0000 (15:58 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 11 Jan 2024 11:14:00 +0000 (19:14 +0800)
commit41958c99e579f6d31545d93603da77133767e3f2
tree73ba16b9081ebd8442ea2ad72e7f94779f1296ee
parentf8447436d3b583365113997f1dee35f92a21abbd
target/loongarch: Implement kvm_arch_init function

Implement the kvm_arch_init of loongarch, in the function, the
KVM_CAP_MP_STATE cap is checked by kvm ioctl.

Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: xianglai li <lixianglai@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240105075804.1228596-6-zhaotianrui@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/kvm/kvm.c