On 2025/5/9 下午8:14, Jiaxun Yang wrote:


在2025年5月9日周五 上午11:12,Bibo Mao写道:
Option kernel_irqchip=split is not supported on LoongArch virt machine,
report error and exit if detect split kernel_irqchip option.

Signed-off-by: Bibo Mao <maob...@loongson.cn>
---
  target/loongarch/kvm/kvm.c | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/target/loongarch/kvm/kvm.c b/target/loongarch/kvm/kvm.c
index 1bda570482..a8e5724b21 100644
--- a/target/loongarch/kvm/kvm.c
+++ b/target/loongarch/kvm/kvm.c
@@ -1249,7 +1249,12 @@ int kvm_arch_init(MachineState *ms, KVMState *s)

  int kvm_arch_irqchip_create(KVMState *s)
  {
-    return 0;
+    if (kvm_kernel_irqchip_split()) {
+        error_report("-machine kernel_irqchip=split is not supported on ARM.");
                                                                            ^ 
ARM :)
oops, silly copy and past here :)
will do.

Regards
Bibo Mao

Thanks



Reply via email to