target/loongarch: Add missing vCPU features with QMP method
Feature msgint and ptw is missing with QMP method, such as: query-cpu-model-expansion type=static model={"name":"max"} Here add missing features in cpu_model_advertised_features array. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Bibo Mao committed
Jan 19, 2026 at 18:07 UTC
42dbb60bce9aff9e686a99d51f12f5a5118ee135
1 file changed
+2
-1
target/loongarch/loongarch-qmp-cmds.c
+2
-1
@@ -41,7 +41,8 @@ CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp)
41
}
42
43
static const char *cpu_model_advertised_features[] = {
44
- "lsx", "lasx", "lbt", "pmu", "kvm-pv-ipi", "kvm-steal-time", NULL
44
+ "lsx", "lasx", "lbt", "pmu", "kvm-pv-ipi", "kvm-steal-time", "msgint",
45
+ "ptw", NULL
46
};
47
48
CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType type,