diff options
author | Bibo Mao <maobibo@loongson.cn> | 2025-03-20 11:21:53 +0800 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2025-03-20 07:58:19 +0100 |
commit | d7ffc17de706e6d0178fcdbc3a7d302f5a246c3c (patch) | |
tree | cde619ff7df895aebda720b01f68e57d70e39eda /hw/core/nmi.c | |
parent | 6121c55db9c972950b28eb9ac84858271579f25c (diff) | |
download | qemu-d7ffc17de706e6d0178fcdbc3a7d302f5a246c3c.zip qemu-d7ffc17de706e6d0178fcdbc3a7d302f5a246c3c.tar.gz qemu-d7ffc17de706e6d0178fcdbc3a7d302f5a246c3c.tar.bz2 |
target/loongarch: Fix error handling of KVM feature checks
For some paravirt KVM features, if user forces to enable it however
KVM does not support, qemu should fail to run and exit immediately,
rather than continue to run. Here set error message and return directly
in function kvm_arch_init_vcpu().
Fixes: 6edd2a9bec90 (target/loongarch/kvm: Implement LoongArch PMU extension)
Fixes: 936c3f4d7916 (target/loongarch: Use auto method with LSX feature)
Fixes: 5e360dabedb1 (target/loongarch: Use auto method with LASX feature)
Fixes: 620d9bd0022e (target/loongarch: Add paravirt ipi feature detection)
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250320032158.1762751-2-maobibo@loongson.cn>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/core/nmi.c')
0 files changed, 0 insertions, 0 deletions