[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 5/9] target/loongarch: Implement kvm_arch_init function
From: |
Tianrui Zhao |
Subject: |
[PATCH v4 5/9] target/loongarch: Implement kvm_arch_init function |
Date: |
Fri, 5 Jan 2024 15:58:00 +0800 |
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>
---
target/loongarch/kvm/kvm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/loongarch/kvm/kvm.c b/target/loongarch/kvm/kvm.c
index e7c9ef830c..29944b9ef8 100644
--- a/target/loongarch/kvm/kvm.c
+++ b/target/loongarch/kvm/kvm.c
@@ -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;
}
--
2.39.1
- [PATCH v4 0/9] Add loongarch kvm accel support, Tianrui Zhao, 2024/01/05
- [PATCH v4 5/9] target/loongarch: Implement kvm_arch_init function,
Tianrui Zhao <=
- [PATCH v4 6/9] target/loongarch: Implement kvm_arch_init_vcpu, Tianrui Zhao, 2024/01/05
- [PATCH v4 2/9] target/loongarch: Define some kvm_arch interfaces, Tianrui Zhao, 2024/01/05
- [PATCH v4 9/9] target/loongarch: Add loongarch kvm into meson build, Tianrui Zhao, 2024/01/05
- [PATCH v4 1/9] linux-headers: Synchronize linux headers from linux v6.7.0-rc8, Tianrui Zhao, 2024/01/05
- Re: [PATCH v4 0/9] Add loongarch kvm accel support, gaosong, 2024/01/09