Skip to contentSkip to conversation

coverity-scan: Remove lm32/unicore32 and add sysemu component

PATCH In review Philippe Mathieu-Daudé 3 participants 6 messages Jun 19, 2021 – Jul 5, 2021

lore
Share & tools
lore
#0 lore raw

cover coverity-scan: Remove lm32/unicore32 and add sysemu component

Add 'sysemu' component for issues not related to TCG.

Philippe Mathieu-Daudé (2):
coverity-scan: Remove lm32 / unicore32 targets
coverity-scan: Add 'sysemu' component

 scripts/coverity-scan/COMPONENTS.md | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/2 coverity-scan: Remove lm32 / unicore32 targets

lm32 has been removed in commit 9d49bcf6992 ("Drop the deprecated lm32 target"), and unicore32 in 4369223902a ("Drop the deprecated unicore32 target").

---
 scripts/coverity-scan/COMPONENTS.md | 6 ------
 1 file changed, 6 deletions(-)
scripts/coverity-scan/COMPONENTS.md +0 -6
index 02a3447dab0..183f26a32c9 100644
@@ -21,9 +21,6 @@ hppa
 i386
   ~ (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c)
 
-lm32
-  ~ (/qemu)?((/include)?/hw/lm32/.*|/target/lm32/.*|/hw/.*/(milkymist|lm32).*)
-
 m68k
   ~ (/qemu)?((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*)
 
@@ -60,9 +57,6 @@ tilegx
 tricore
   ~ (/qemu)?((/include)?/hw/tricore/.*|/target/tricore/.*)
 
-unicore32
-  ~ (/qemu)?((/include)?/hw/unicore32/.*|/target/unicore32/.*)
-
 9pfs
   ~ (/qemu)?(/hw/9pfs/.*|/fsdev/.*)
 
Signature · 1 line
2.31.1
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] coverity-scan: Remove lm32 / unicore32 targets

Quoted 25 lines · Philippe Mathieu-Daudé

lm32 has been removed in commit 9d49bcf6992 ("Drop the deprecated lm32 target"), and unicore32 in 4369223902a ("Drop the deprecated unicore32 target").

---
 scripts/coverity-scan/COMPONENTS.md | 6 ------
 1 file changed, 6 deletions(-)
scripts/coverity-scan/COMPONENTS.md +0 -3
index 02a3447dab0..183f26a32c9 100644
@@ -21,9 +21,6 @@ hppa
 i386
   ~ (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c)
 
-lm32
-  ~ (/qemu)?((/include)?/hw/lm32/.*|/target/lm32/.*|/hw/.*/(milkymist|lm32).*)
-
 m68k
   ~ (/qemu)?((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*)
 

scripts/coverity-scan/COMPONENTS.md tilegx · line 61

Quoted 8 lines
scripts/coverity-scan/COMPONENTS.md +0 -3
@@ -60,9 +57,6 @@ tilegx
 tricore
   ~ (/qemu)?((/include)?/hw/tricore/.*|/target/tricore/.*)
 
-unicore32
-  ~ (/qemu)?((/include)?/hw/unicore32/.*|/target/unicore32/.*)
-
 9pfs
   ~ (/qemu)?(/hw/9pfs/.*|/fsdev/.*)

NB that somebody will have to manually make the changes to the Coverity config on the website as well.

thanks
-- PMM

#3 lore raw

Re: [PATCH 1/2] coverity-scan: Remove lm32 / unicore32 targets

Quoted 37 lines · Peter Maydell
Quoted 25 lines · Philippe Mathieu-Daudé

lm32 has been removed in commit 9d49bcf6992 ("Drop the deprecated lm32 target"), and unicore32 in 4369223902a ("Drop the deprecated unicore32 target").

---
  scripts/coverity-scan/COMPONENTS.md | 6 ------
  1 file changed, 6 deletions(-)
scripts/coverity-scan/COMPONENTS.md +0 -3
index 02a3447dab0..183f26a32c9 100644
@@ -21,9 +21,6 @@ hppa
  i386
    ~ (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c)
 
-lm32
-  ~ (/qemu)?((/include)?/hw/lm32/.*|/target/lm32/.*|/hw/.*/(milkymist|lm32).*)
-
  m68k
    ~ (/qemu)?((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*)
 

scripts/coverity-scan/COMPONENTS.md tilegx · line 61

Quoted 8 lines
scripts/coverity-scan/COMPONENTS.md +0 -3
@@ -60,9 +57,6 @@ tilegx
  tricore
    ~ (/qemu)?((/include)?/hw/tricore/.*|/target/tricore/.*)
 
-unicore32
-  ~ (/qemu)?((/include)?/hw/unicore32/.*|/target/unicore32/.*)
-
  9pfs
    ~ (/qemu)?(/hw/9pfs/.*|/fsdev/.*)
Quoted 6 lines

NB that somebody will have to manually make the changes to the Coverity config on the website as well.

thanks
-- PMM

Queued this one (and made the manual changes).

Paolo

#4 lore raw

PATCH 2/2 coverity-scan: Add 'sysemu' component

In reply to Philippe Mathieu-Daudé

Issues related to system emulation currently appear under the 'tcg' component. We commonly refer to system emulation as 'sysemu', so add it as a new Coverity component to cover files that have nothing to do with TCG.

---
 scripts/coverity-scan/COMPONENTS.md | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
scripts/coverity-scan/COMPONENTS.md +4 -1
index 183f26a32c9..7ed3f0a0077 100644
@@ -115,7 +115,7 @@ slirp
   ~ (/qemu)?(/.*slirp.*)
 
 tcg
-  ~ (/qemu)?(/accel/tcg/.*|/replay/.*|/(.*/)?softmmu.*)
+  ~ (/qemu)?(/accel/tcg/.*|/replay/.*|tcg/*\.?)
 
 trace
   ~ (/qemu)?(/.*trace.*\.[ch])
@@ -129,6 +129,9 @@ usb
 user
   ~ (/qemu)?(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/exec/user/.*)
 
+sysemu
+  ~ (/qemu)?(/softmmu/.*|/accel/(hvf|kvm)/.*)
+
 util
   ~ (/qemu)?(/util/.*|/include/qemu/.*)
 
Signature · 1 line
2.31.1
#5 lore raw

Re: [PATCH 2/2] coverity-scan: Add 'sysemu' component

Quoted 16 lines · Philippe Mathieu-Daudé

Issues related to system emulation currently appear under the 'tcg' component. We commonly refer to system emulation as 'sysemu', so add it as a new Coverity component to cover files that have nothing to do with TCG.

---
 scripts/coverity-scan/COMPONENTS.md | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
scripts/coverity-scan/COMPONENTS.md +0 -0
index 183f26a32c9..7ed3f0a0077 100644

scripts/coverity-scan/COMPONENTS.md slirp · line 118

Quoted 5 lines
scripts/coverity-scan/COMPONENTS.md +1 -1
@@ -115,7 +115,7 @@ slirp
   ~ (/qemu)?(/.*slirp.*)
 
 tcg
-  ~ (/qemu)?(/accel/tcg/.*|/replay/.*|/(.*/)?softmmu.*)
+  ~ (/qemu)?(/accel/tcg/.*|/replay/.*|tcg/*\.?)

Makes sense not to call softmmu/ part of "TCG"...

scripts/coverity-scan/COMPONENTS.md usb · line 134

Quoted 10 lines
scripts/coverity-scan/COMPONENTS.md +3 -0
 trace
   ~ (/qemu)?(/.*trace.*\.[ch])
@@ -129,6 +129,9 @@ usb
 user
   ~ (/qemu)?(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/exec/user/.*)
 
+sysemu
+  ~ (/qemu)?(/softmmu/.*|/accel/(hvf|kvm)/.*)
+

...but maybe we should have a component for each accelerator instead of lumping hvf and kvm under here ? We already have components for xen and tcg.

Quoted 5 lines
scripts/coverity-scan/COMPONENTS.md +0 -1
 util
   ~ (/qemu)?(/util/.*|/include/qemu/.*)
 
--

2.31.1

thanks
-- PMM