qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] target/loongarch: Solve some issues reported from coccinelle
@ 2025-03-13  9:13 Bibo Mao
  2025-03-13  9:13 ` [PATCH 1/3] target/loongarch: Return directly when detect KVM disabled features Bibo Mao
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Bibo Mao @ 2025-03-13  9:13 UTC (permalink / raw)
  To: Song Gao; +Cc: Jiaxun Yang, qemu-devel, Markus Armbruster, Paolo Bonzini

This patch set solves errors reported by coccinelle tool with commands:
  spatch --sp-file scripts/coccinelle/*.cocci --dir target/loongarch/
  spatch --sp-file scripts/coccinelle/*.cocci --dir hw/loongarch/

The main problem is that qemu should fail to run when feature is forced
to enabled however KVM does not support it, rather than report error and
continue to run.

Bibo Mao (3):
  target/loongarch: Return directly when detect KVM disabled features
  hw/loongarch/virt: Remove unnecessary NULL pointer checking
  target/loongarch: Remove unnecessary temporary variable assignment

 hw/loongarch/virt.c               | 12 +++---------
 target/loongarch/kvm/kvm.c        |  4 ++++
 target/loongarch/tcg/tlb_helper.c |  5 ++---
 3 files changed, 9 insertions(+), 12 deletions(-)


base-commit: 825b96dbcee23d134b691fc75618b59c5f53da32
-- 
2.39.3



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

end of thread, other threads:[~2025-03-14  8:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-13  9:13 [PATCH 0/3] target/loongarch: Solve some issues reported from coccinelle Bibo Mao
2025-03-13  9:13 ` [PATCH 1/3] target/loongarch: Return directly when detect KVM disabled features Bibo Mao
2025-03-13 10:26   ` Markus Armbruster
2025-03-13 11:17     ` bibo mao
2025-03-13  9:13 ` [PATCH 2/3] hw/loongarch/virt: Remove unnecessary NULL pointer checking Bibo Mao
2025-03-13 10:32   ` Markus Armbruster
2025-03-13 11:22     ` bibo mao
2025-03-14  2:27     ` bibo mao
2025-03-14  5:38       ` Markus Armbruster
2025-03-14  6:28         ` bibo mao
2025-03-14  6:58           ` bibo mao
2025-03-14  8:56           ` Markus Armbruster
2025-03-13  9:13 ` [PATCH 3/3] target/loongarch: Remove unnecessary temporary variable assignment Bibo Mao
2025-03-13 10:33   ` Markus Armbruster
2025-03-13 10:41   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).