diff options
author | Bibo Mao <maobibo@loongson.cn> | 2025-06-06 14:34:31 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2025-06-19 15:53:30 +0800 |
commit | 74586a2482575776fff5f5f75e0657524c60719d (patch) | |
tree | e92f9e3abbfec8d71a383ad75bac081b271743d8 | |
parent | c642ddf19b248bb668e40a8d15089b877e4057fa (diff) | |
download | qemu-74586a2482575776fff5f5f75e0657524c60719d.zip qemu-74586a2482575776fff5f5f75e0657524c60719d.tar.gz qemu-74586a2482575776fff5f5f75e0657524c60719d.tar.bz2 |
target/loongarch: Report error with split kernel_irqchip option
Option kernel_irqchip=split is not supported on LoongArch virt machine,
report error and exit if detect split kernel_irqchip option.
Reviewed-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Message-ID: <20250606063431.2557468-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
-rw-r--r-- | target/loongarch/kvm/kvm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target/loongarch/kvm/kvm.c b/target/loongarch/kvm/kvm.c index c66bdd5..c5d488a 100644 --- a/target/loongarch/kvm/kvm.c +++ b/target/loongarch/kvm/kvm.c @@ -1253,7 +1253,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("kernel_irqchip=split is not supported on LoongArch"); + exit(1); + } + + return kvm_check_extension(s, KVM_CAP_DEVICE_CTRL); } void kvm_arch_pre_run(CPUState *cs, struct kvm_run *run) |