[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/14] target/loongarch: Implement kvm_arch_init function
|
From: |
Song Gao |
|
Subject: |
[PULL 05/14] target/loongarch: Implement kvm_arch_init function |
|
Date: |
Thu, 11 Jan 2024 19:16:00 +0800 |
From: Tianrui Zhao <zhaotianrui@loongson.cn>
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 | 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.25.1
- [PULL 00/14] loongarch-to-apply queue, Song Gao, 2024/01/11
- [PULL 00/14] loongarch-to-apply queue, Song Gao, 2024/01/11
- [PULL 03/14] target/loongarch: Supplement vcpu env initial when vcpu reset, Song Gao, 2024/01/11
- [PULL 05/14] target/loongarch: Implement kvm_arch_init function,
Song Gao <=
- [PULL 08/14] target/loongarch: Restrict TCG-specific code, Song Gao, 2024/01/11
- [PULL 12/14] hw/loongarch/virt: Set iocsr address space per-board rather than percpu, Song Gao, 2024/01/11
- [PULL 01/14] linux-headers: Synchronize linux headers from linux v6.7.0-rc8, Song Gao, 2024/01/11
- [PULL 09/14] target/loongarch: Implement set vcpu intr for kvm, Song Gao, 2024/01/11
- [PULL 04/14] target/loongarch: Implement kvm get/set registers, Song Gao, 2024/01/11
- [PULL 02/14] target/loongarch: Define some kvm_arch interfaces, Song Gao, 2024/01/11
- [PULL 07/14] target/loongarch: Implement kvm_arch_handle_exit, Song Gao, 2024/01/11
- [PULL 11/14] hw/intc/loongarch_ipi: Use MemTxAttrs interface for ipi ops, Song Gao, 2024/01/11
- [PULL 06/14] target/loongarch: Implement kvm_arch_init_vcpu, Song Gao, 2024/01/11
- [PULL 10/14] target/loongarch: Add loongarch kvm into meson build, Song Gao, 2024/01/11