[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH RFC v3 5/9] target/loongarch: Implement kvm_arch_init function
|
From: |
Tianrui Zhao |
|
Subject: |
[PATCH RFC v3 5/9] target/loongarch: Implement kvm_arch_init function |
|
Date: |
Sat, 6 May 2023 10:24:18 +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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
target/loongarch/kvm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/loongarch/kvm.c b/target/loongarch/kvm.c
index 640fca52fa..dac65f546e 100644
--- a/target/loongarch/kvm.c
+++ b/target/loongarch/kvm.c
@@ -442,6 +442,7 @@ void kvm_arch_init_irq_routing(KVMState *s)
int kvm_arch_init(MachineState *ms, KVMState *s)
{
+ cap_has_mp_state = kvm_check_extension(s, KVM_CAP_MP_STATE);
return 0;
}
--
2.31.1
- [PATCH RFC v3 0/9] Add loongarch kvm accel support, Tianrui Zhao, 2023/05/05
- [PATCH RFC v3 2/9] target/loongarch: Define some kvm_arch interfaces, Tianrui Zhao, 2023/05/05
- [PATCH RFC v3 1/9] linux-headers: Add KVM headers for loongarch, Tianrui Zhao, 2023/05/05
- [PATCH RFC v3 9/9] target/loongarch: Add loongarch kvm into meson build, Tianrui Zhao, 2023/05/05
- [PATCH RFC v3 5/9] target/loongarch: Implement kvm_arch_init function,
Tianrui Zhao <=
- [PATCH RFC v3 6/9] target/loongarch: Implement kvm_arch_init_vcpu, Tianrui Zhao, 2023/05/05
- [PATCH RFC v3 4/9] target/loongarch: Implement kvm get/set registers, Tianrui Zhao, 2023/05/05
- [PATCH RFC v3 3/9] target/loongarch: Supplement vcpu env initial when vcpu reset, Tianrui Zhao, 2023/05/05
- [PATCH RFC v3 8/9] target/loongarch: Implement set vcpu intr for kvm, Tianrui Zhao, 2023/05/05
- [PATCH RFC v3 7/9] target/loongarch: Implement kvm_arch_handle_exit, Tianrui Zhao, 2023/05/05