All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] target/loongarch: Add full type support for query-cpu-model-expansion
@ 2025-02-13  9:16 Bibo Mao
  2025-02-13  9:40 ` bibo mao
  2025-02-13 10:07 ` gaosong
  0 siblings, 2 replies; 9+ messages in thread
From: Bibo Mao @ 2025-02-13  9:16 UTC (permalink / raw)
  To: Song Gao; +Cc: qemu-devel

With full type for query-cpu-model-expansion qmp command, it shows that
it is not supported. For instance,
  query-cpu-model-expansion type=full model={"name":"max"}

Here is is output,
  {"error": {"class": "GenericError", "desc": "The requested expansion type is not supported"}}

Since full type is not supported and only static type is supported, Here
replace static type with full type for command query-cpu-model-expansion.

And there is result with this patch,
  {"return": {"model": {"name": "max", "props": {"lbt": true, "lasx": true, "pmu": true, "lsx": true}}}}

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
 target/loongarch/loongarch-qmp-cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/loongarch/loongarch-qmp-cmds.c b/target/loongarch/loongarch-qmp-cmds.c
index 3fde5a5a20..429c6d35fd 100644
--- a/target/loongarch/loongarch-qmp-cmds.c
+++ b/target/loongarch/loongarch-qmp-cmds.c
@@ -56,7 +56,7 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType type,
     const char *name;
     int i;
 
-    if (type != CPU_MODEL_EXPANSION_TYPE_STATIC) {
+    if (type != CPU_MODEL_EXPANSION_TYPE_FULL) {
         error_setg(errp, "The requested expansion type is not supported");
         return NULL;
     }

base-commit: de278e54aefed143526174335f8286f7437d20be
-- 
2.39.3



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-14 12:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13  9:16 [PATCH] target/loongarch: Add full type support for query-cpu-model-expansion Bibo Mao
2025-02-13  9:40 ` bibo mao
2025-02-13 16:52   ` Igor Mammedov
2025-02-14  1:57     ` bibo mao
2025-02-13 10:07 ` gaosong
2025-02-13 11:48   ` Markus Armbruster
2025-02-13 16:17     ` Igor Mammedov
2025-02-13 16:25       ` David Hildenbrand
2025-02-14 12:29         ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.