Skip to contentSkip to conversation

coverity COMPONENTS.md: Update for loongarch, slirp

PATCH In review Peter Maydell 2 participants 4 messages Jul 18, 2022

lore
Share & tools
lore
#0 lore raw

cover coverity COMPONENTS.md: Update for loongarch, slirp

This patchseries updates the Coverity Scan component regexs to add a new component for the new loongarch architecture, and to tweak the slirp component and mark it as "ignore when doing scans" (since it's now a separate upstream project).

Unfortunately there's no automated way to upload new component definitions to Coverity Scan; when these are reviewed I'll update the components with the GUI :-/

thanks
-- PMM

Peter Maydell (2):
scripts/coverity-scan/COMPONENTS.md: Add loongarch component scripts/coverity-scan/COMPONENTS.md: Update slirp component info

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

PATCH 1/2 scripts/coverity-scan/COMPONENTS.md: Add loongarch component

Add the component regex for the new loongarch target.

---
 scripts/coverity-scan/COMPONENTS.md | 3 +++
 1 file changed, 3 insertions(+)
scripts/coverity-scan/COMPONENTS.md +3 -0
index de2eb962416..a61d011d9a4 100644
@@ -143,3 +143,6 @@ testlibs
 
 tests
   ~ (/qemu)?(/tests/.*)
+
+loongarch
+  ~ (/qemu)?((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*)
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/2 scripts/coverity-scan/COMPONENTS.md: Update slirp component info

In reply to Peter Maydell

Update the regex for the slirp component now that it lives solely inside /slirp/, and note that it should be ignored in Coverity analysis (because it's a separate upstream project now, and they run Coverity on it themselves).

---
 scripts/coverity-scan/COMPONENTS.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/coverity-scan/COMPONENTS.md +2 -2
index a61d011d9a4..3aad9cdfaf4 100644
@@ -108,8 +108,8 @@ qemu-ga
 scsi
   ~ (/qemu)?(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*)
 
-slirp
-  ~ (/qemu)?(/.*slirp.*)
+slirp (component should be ignored in analysis)
+  ~ (/qemu)?(/slirp/.*)
 
 tcg
   ~ (/qemu)?(/accel/tcg/.*|/replay/.*|/(.*/)?softmmu.*)
Signature · 1 line
2.25.1
Acked-by on the v1 series
#3 lore raw
In reply to Peter Maydell
Quoted 12 lines · Peter Maydell

This patchseries updates the Coverity Scan component regexs to add a new component for the new loongarch architecture, and to tweak the slirp component and mark it as "ignore when doing scans" (since it's now a separate upstream project).

Unfortunately there's no automated way to upload new component definitions to Coverity Scan; when these are reviewed I'll update the components with the GUI :-/

thanks
-- PMM

Quoted 7 lines

Peter Maydell (2):
scripts/coverity-scan/COMPONENTS.md: Add loongarch component scripts/coverity-scan/COMPONENTS.md: Update slirp component info

  scripts/coverity-scan/COMPONENTS.md | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)