在 2025/7/10 上午9:54, Bibo Mao 写道:
@@ -1238,6 +1262,12 @@ static void virt_class_init(ObjectClass *oc,
const void *data)
NULL, NULL);
object_class_property_set_description(oc, "v-eiointc",
"Enable Virt Extend I/O Interrupt
Controller.");
+#ifdef CONFIG_TCG
It should be (tcg_enabled()), CONFIG_TCG and CONFIG_KVM is enabled by
default.
I find tcg_enabled() is not work in xx_virt_class_intit ().
I just printf tcg_enabled() and then exit(1).
and I also add -accel tcg on start.sh .
got the tcg_enabled() value is 0.not 1.
so I use CONFIG_TCG , and I see arm is also use CONFIG_TCG not
tcg_enabled().
Thanks.
Song Gao