Skip to content

Commit

Permalink
target/loongarch: Implement kvm_arch_init function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zhaotianrui-loongson authored and gaosong-loongson committed Jan 11, 2024
1 parent f844743 commit 41958c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/loongarch/kvm/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ int kvm_arch_get_default_type(MachineState *ms)

int kvm_arch_init(MachineState *ms, KVMState *s)
{
cap_has_mp_state = kvm_check_extension(s, KVM_CAP_MP_STATE);
return 0;
}

Expand Down

0 comments on commit 41958c9

Please sign in to comment.