AI Slop Code Risk Monitor

qemu/qemu

SlopCodeMonitor badge for qemu/qemu Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Official QEMU mirror. Please see https://www.qemu.org/contribute/ for how to submit changes to QEMU. Pull Requests are disabled. Please only use release tarballs from the QEMU website.

2.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for qemu/qemu, a C project with 13,962 GitHub stars. SynthScan examined 2,680,267 lines of code across 8049 source files, recording 7446 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 2.7 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.7
Adjusted Signal
2.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
14.0K
Stars
C
Language
2.7M
Lines of Code
8.0K
Files
7.4K
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 11.6/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 7108 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

Are imports declared and package/API names verified? 177 finding(s).

Agent Over-Engineering Ratio 1.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 293 finding(s).

PR Review Velocity Impact 13.7/100 · LOW

Which changes need focused human review? 7446 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 52MEDIUM 96LOW 7298

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 7446 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block6784 hits · 6182 pts
SeverityFileLineSnippetContext
LOWpythondeps.toml1# This file describes Python package requirements to beCOMMENT
LOWblockdev.c41#include "monitor/monitor.h"COMMENT
LOWblockjob.c21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOWblock.c21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOWblock.c41#include "qobject/qnull.h"COMMENT
LOWqemu-nbd.c21#include <libgen.h>COMMENT
LOWqemu-nbd.c41#include "qobject/qstring.h"COMMENT
LOWqemu-nbd.c61#define QEMU_NBD_OPT_CACHE 256COMMENT
LOWqemu-img.c21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INCOMMENT
LOWqemu-img.c41#include "qemu/log.h"COMMENT
LOWqemu-io.c21#include "qemu-io.h"COMMENT
LOWos-posix.c21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW.patchew.yml1---COMMENT
LOW.gitlab-ci.yml1#COMMENT
LOWqapi/transaction.json1# -*- Mode: Python -*-COMMENT
LOWqapi/transaction.json21COMMENT
LOWqapi/transaction.json41##COMMENT
LOWqapi/transaction.json61#COMMENT
LOWqapi/transaction.json81 { 'name': 'drive-backup', 'features': [ 'deprecated' ] } ] }COMMENT
LOWqapi/transaction.json101#COMMENT
LOWqapi/transaction.json121 'data': { 'data': 'BlockdevBackup' } }COMMENT
LOWqapi/transaction.json141#COMMENT
LOWqapi/transaction.json181COMMENT
LOWqapi/transaction.json201# If any operation fails, then the entire set of actions will beCOMMENT
LOWqapi/transaction.json221# support it, for example, qcow2, and rbd,COMMENT
LOWqapi/transaction.json241#COMMENT
LOWqapi/dump.json1# -*- Mode: Python -*-COMMENT
LOWqapi/dump.json21#COMMENT
LOWqapi/dump.json41#COMMENT
LOWqapi/dump.json61# @paging: if true, do paging to get guest's memory mapping. ThisCOMMENT
LOWqapi/dump.json81# string is the file's path.COMMENT
LOWqapi/dump.json101#COMMENT
LOWqapi/dump.json121#COMMENT
LOWqapi/dump.json141# @total: total bytes to be written in latest dump (uncompressed)COMMENT
LOWqapi/dump.json161# <- { "return": { "status": "active", "completed": 1024000,COMMENT
LOWqapi/dump.json181# "data": { "result": { "total": 1090650112, "status": "completed",COMMENT
LOWqapi/dump.json201# Return the available formats for `dump-guest-memory`COMMENT
LOWqapi/block.json1# -*- Mode: Python -*-COMMENT
LOWqapi/block.json21# translate logical CHS to physical; instead, they will useCOMMENT
LOWqapi/block.json41# @rechs: Same as @large, but first convert a 16-head geometry toCOMMENT
LOWqapi/block.json61# @none: No drive connectedCOMMENT
LOWqapi/block.json81{ 'struct': 'PRManagerInfo',COMMENT
LOWqapi/block.json101# @device: Block device nameCOMMENT
LOWqapi/block.json121# -> { "execute": "eject", "arguments": { "id": "ide1-0-1" } }COMMENT
LOWqapi/block.json141# are cases in which no such event will be generated, these include:COMMENT
LOWqapi/block.json161#COMMENT
LOWqapi/block.json181 '*force': 'bool' } }COMMENT
LOWqapi/block.json201# Since: 2.5COMMENT
LOWqapi/block.json221##COMMENT
LOWqapi/block.json241#COMMENT
LOWqapi/block.json261COMMENT
LOWqapi/block.json281# "file": { "driver": "file",COMMENT
LOWqapi/block.json301#COMMENT
LOWqapi/block.json321# @id: The name or QOM path of the guest device (since: 2.8)COMMENT
LOWqapi/block.json341# Since: 2.5COMMENT
LOWqapi/block.json361# <- { "error":COMMENT
LOWqapi/block.json381##COMMENT
LOWqapi/block.json401# "id": "/machine/unattached/device[22]",COMMENT
LOWqapi/block.json421#COMMENT
LOWqapi/block.json441# the whole group.COMMENT
6724 more matches not shown…
Empty Error Handlers42 hits · 210 pts
SeverityFileLineSnippetContext
HIGHpython/qemu/utils/qemu_ga_client.py175except asyncio.TimeoutError:CODE
HIGHpython/qemu/utils/qemu_ga_client.py185except asyncio.TimeoutError:CODE
HIGHpython/scripts/mkvenv.py562except PackageNotFoundError:CODE
HIGHpython/scripts/mkvenv.py711except PackageNotFoundError:CODE
HIGHpython/scripts/mkvenv.py739except subprocess.CalledProcessError:CODE
HIGHtests/tcg/i386/test-mmx.py238except SkipInstruction:CODE
HIGHtests/tcg/i386/test-avx.py370except SkipInstruction:CODE
HIGHtests/tcg/multiarch/gdbstub/follow-fork-mode-child.py19except gdb.error:CODE
HIGHtests/docker/docker.py81except OSError:CODE
HIGHtests/docker/docker.py69except OSError:CODE
HIGHtests/docker/docker.py109except IndexError:CODE
HIGHtests/guest-debug/test_gdbstub.py66except gdb.error:CODE
HIGHtests/qemu-iotests/testenv.py90except UnicodeDecodeError: # binary test? for future.CODE
HIGHtests/qemu-iotests/iotests.py805except OSError:CODE
HIGHtests/qemu-iotests/iotests.py1519except OSError:CODE
HIGHtests/qemu-iotests/iotests.py1548except OSError:CODE
HIGHtests/qemu-iotests/iotests.py489except OSError:CODE
HIGHtests/qemu-iotests/iotests.py305except json.JSONDecodeError:CODE
HIGHtests/qemu-iotests/iotests.py485except OSError:CODE
HIGHtests/qemu-iotests/iotests.py797except OSError:CODE
HIGHtests/qemu-iotests/testrunner.py37except OSError:CODE
HIGHtests/migration-stress/guestperf/engine.py534except:CODE
HIGHtests/migration-stress/guestperf/engine.py538except:CODE
HIGHtests/migration-stress/guestperf/engine.py473except:CODE
HIGHtests/image-fuzzer/qcow2/fuzz.py147except ValueError:CODE
HIGHtests/functional/qemu_test/testcase.py338except Exception:CODE
HIGHtests/functional/generic/test_monitor_hotplug.py269except (ConnectionResetError, EOFError, BrokenPipeError):CODE
HIGHtests/functional/x86_64/test_vhost_vsock_cpr.py139except QMP_GONE:CODE
HIGHtests/functional/x86_64/test_vhost_vsock_cpr.py281except QMP_GONE:CODE
HIGHtests/functional/x86_64/test_vhost_vsock_cpr.py336except QMP_GONE:CODE
HIGHdocs/conf.py105except:CODE
HIGHdocs/sphinx/dbusdomain.py378except ValueError:CODE
HIGHscripts/decodetree.py523except KeyError:CODE
HIGHscripts/mtest2make.py47except:CODE
HIGHscripts/analyze-migration.py32except OSError:CODE
HIGHscripts/qmp_helper.py238except ValueError:CODE
HIGHscripts/tracetool/__init__.py584except ValueError:CODE
HIGHscripts/qemugdb/coroutine.py213except OSError: # in case subprocess exits and we get EBADF on read()CODE
HIGHscripts/qemugdb/coroutine.py218except OSError: # in case we get EBADF on close()CODE
HIGHscripts/lib/kdoc/kdoc_output.py592except ValueError:CODE
HIGHscripts/simplebench/bench_prealloc.py50except OSError:CODE
HIGHscripts/simplebench/bench_block_job.py108except OSError:CODE
Decorative Section Separators52 hits · 156 pts
SeverityFileLineSnippetContext
MEDIUM.gitlab-ci.yml14# ----------------------------------------------------------------------COMMENT
MEDIUMqapi/block.json14# ===================================COMMENT
MEDIUMqapi/block-export.json6# ====================COMMENT
MEDIUMqapi/block-core.json6# =========================COMMENT
MEDIUMtests/qapi-schema/doc-good.json22# ==========COMMENT
MEDIUMtests/qapi-schema/doc-good.json150# ==================COMMENT
MEDIUMdocs/config/mach-virt-serial.cfg2# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-serial.cfg19# ---------------------------------------------------------COMMENT
MEDIUMdocs/config/mach-virt-serial.cfg49# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-serial.cfg75# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-serial.cfg122# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-serial.cfg188# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-serial.cfg231# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-serial.cfg2# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-serial.cfg18# ---------------------------------------------------------COMMENT
MEDIUMdocs/config/q35-virtio-serial.cfg52# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-serial.cfg72# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-serial.cfg138# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-serial.cfg181# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg2# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg17# ---------------------------------------------------------COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg47# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg67# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg133# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg176# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg194# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg212# =========================================================COMMENT
MEDIUMdocs/config/q35-virtio-graphical.cfg236# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg2# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg18# ---------------------------------------------------------COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg43# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg69# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg116# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg182# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg225# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg243# =========================================================COMMENT
MEDIUMdocs/config/mach-virt-graphical.cfg264# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg2# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg17# ---------------------------------------------------------COMMENT
MEDIUMdocs/config/q35-emulated.cfg49# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg73# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg113# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg127# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg165# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg201# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg237# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg255# =========================================================COMMENT
MEDIUMdocs/config/q35-emulated.cfg277# =========================================================COMMENT
MEDIUMscripts/minikconf.py51# -------------------------------------------COMMENT
MEDIUMscripts/minikconf.py59# -------------------------------------------COMMENT
MEDIUMscripts/minikconf.py331# -------------------------------------------COMMENT
MEDIUMscripts/minikconf.py334# -------------------------------------------COMMENT
Unused Imports157 hits · 153 pts
SeverityFileLineSnippetContext
LOWpython/tests/linters.py3CODE
LOWpython/qemu/utils/__init__.py26CODE
LOWpython/qemu/utils/__init__.py26CODE
LOWpython/qemu/utils/__init__.py26CODE
LOWpython/qemu/utils/__init__.py26CODE
LOWpython/qemu/machine/__init__.py28CODE
LOWpython/qemu/machine/__init__.py29CODE
LOWpython/qemu/machine/__init__.py29CODE
LOWpython/scripts/mkvenv.py130CODE
LOWpython/scripts/mkvenv.py131CODE
LOWpython/scripts/mkvenv.py104CODE
LOWpython/scripts/mkvenv.py118CODE
LOWtarget/hexagon/gen_analyze_funcs.py20CODE
LOWtarget/hexagon/gen_analyze_funcs.py21CODE
LOWtarget/hexagon/gen_analyze_funcs.py22CODE
LOWtarget/hexagon/gen_trans_funcs.py20CODE
LOWtarget/hexagon/gen_helper_funcs.py20CODE
LOWtarget/hexagon/gen_helper_funcs.py21CODE
LOWtarget/hexagon/gen_helper_funcs.py22CODE
LOWtarget/hexagon/gen_printinsn.py20CODE
LOWtarget/hexagon/gen_opcodes_def.py20CODE
LOWtarget/hexagon/gen_opcodes_def.py21CODE
LOWtarget/hexagon/gen_opcodes_def.py22CODE
LOWtarget/hexagon/hex_common.py20CODE
LOWtarget/hexagon/hex_common.py22CODE
LOWtarget/hexagon/gen_idef_parser_funcs.py20CODE
LOWtarget/hexagon/gen_idef_parser_funcs.py21CODE
LOWtarget/hexagon/gen_idef_parser_funcs.py22CODE
LOWtarget/hexagon/gen_idef_parser_funcs.py24CODE
LOWtarget/hexagon/gen_helper_protos.py20CODE
LOWtarget/hexagon/gen_helper_protos.py21CODE
LOWtarget/hexagon/gen_helper_protos.py22CODE
LOWtarget/hexagon/gen_tcg_funcs.py20CODE
LOWtarget/hexagon/gen_tcg_funcs.py21CODE
LOWtarget/hexagon/gen_tcg_funcs.py22CODE
LOWtarget/hexagon/gen_op_attribs.py20CODE
LOWtarget/hexagon/gen_op_attribs.py21CODE
LOWtarget/hexagon/gen_op_attribs.py22CODE
LOWtarget/hexagon/gen_decodetree.py20CODE
LOWtarget/hexagon/gen_decodetree.py24CODE
LOWtests/tcg/multiarch/gdbstub/memory.py10CODE
LOWtests/docker/docker.py22CODE
LOWtests/docker/docker.py30CODE
LOWtests/docker/docker.py30CODE
LOWtests/qemu-iotests/qed.py16CODE
LOWtests/image-fuzzer/qcow2/__init__.py1CODE
LOWtests/functional/reverse_debugging.py15CODE
LOWtests/functional/replay_kernel.py12CODE
LOWtests/functional/ppc64/test_migration.py7CODE
LOWtests/functional/ppc64/test_fadump.py5CODE
LOWtests/functional/qemu_test/__init__.py9CODE
LOWtests/functional/qemu_test/__init__.py10CODE
LOWtests/functional/qemu_test/__init__.py10CODE
LOWtests/functional/qemu_test/__init__.py11CODE
LOWtests/functional/qemu_test/__init__.py11CODE
LOWtests/functional/qemu_test/__init__.py11CODE
LOWtests/functional/qemu_test/__init__.py11CODE
LOWtests/functional/qemu_test/__init__.py11CODE
LOWtests/functional/qemu_test/__init__.py11CODE
LOWtests/functional/qemu_test/__init__.py11CODE
97 more matches not shown…
Deep Nesting127 hits · 126 pts
SeverityFileLineSnippetContext
LOWpython/qemu/utils/qemu_ga_client.py127CODE
LOWpython/qemu/utils/qom.py226CODE
LOWpython/qemu/machine/machine.py312CODE
LOWpython/qemu/machine/machine.py784CODE
LOWtarget/hexagon/gen_trans_funcs.py78CODE
LOWtarget/hexagon/gen_printinsn.py42CODE
LOWtarget/hexagon/gen_printinsn.py100CODE
LOWroms/edk2-build.py189CODE
LOWroms/edk2-build.py342CODE
LOWtests/tcg/i386/test-mmx.py32CODE
LOWtests/tcg/i386/test-mmx.py43CODE
LOWtests/tcg/i386/test-mmx.py122CODE
LOWtests/tcg/i386/test-mmx.py218CODE
LOWtests/tcg/i386/test-mmx.py168CODE
LOWtests/tcg/i386/test-avx.py65CODE
LOWtests/tcg/i386/test-avx.py76CODE
LOWtests/tcg/i386/test-avx.py183CODE
LOWtests/tcg/i386/test-avx.py351CODE
LOWtests/tcg/i386/test-avx.py248CODE
LOWtests/tcg/multiarch/system/validate-memory-counts.py16CODE
LOWtests/tcg/multiarch/gdbstub/registers.py80CODE
LOWtests/tcg/multiarch/gdbstub/registers.py141CODE
LOWtests/tcg/aarch64/gdbstub/test-sme.py54CODE
LOWtests/docker/docker.py94CODE
LOWtests/docker/docker.py419CODE
LOWtests/docker/docker.py509CODE
LOWtests/qemu-iotests/nbd-fault-injector.py174CODE
LOWtests/qemu-iotests/iotests.py517CODE
LOWtests/qemu-iotests/iotests.py1011CODE
LOWtests/qemu-iotests/iotests.py1295CODE
LOWtests/qemu-iotests/iotests.py1319CODE
LOWtests/qemu-iotests/iotests.py1365CODE
LOWtests/qemu-iotests/findtests.py42CODE
LOWtests/qemu-iotests/testrunner.py157CODE
LOWtests/qemu-iotests/testrunner.py379CODE
LOWtests/qemu-iotests/qcow2.py139CODE
LOWtests/migration-stress/guestperf/shell.py215CODE
LOWtests/migration-stress/guestperf/engine.py120CODE
LOWtests/migration-stress/guestperf/engine.py458CODE
LOWtests/vm/basevm.py95CODE
LOWtests/image-fuzzer/qcow2/layout.py468CODE
LOWtests/functional/qemu_test/testcase.py316CODE
LOWtests/functional/qemu_test/asset.py136CODE
LOWtests/functional/qemu_test/asset.py249CODE
LOWtests/functional/qemu_test/archive.py75CODE
LOWtests/functional/qemu_test/archive.py102CODE
LOWtests/functional/generic/test_linters.py19CODE
LOWtests/functional/aarch64/test_virt_gpu.py33CODE
LOWtests/functional/aarch64/test_virt_vbsa.py128CODE
LOWdocs/sphinx/dbusparser.py138CODE
LOWdocs/sphinx/dbusparser.py202CODE
LOWdocs/sphinx/hxtool.py92CODE
LOWdocs/sphinx/qapidoc.py362CODE
LOWdocs/sphinx/dbusdomain.py138CODE
LOWdocs/sphinx/qapi_domain.py865CODE
LOWdocs/sphinx/kerneldoc.py62CODE
LOWscripts/replay-dump.py411CODE
LOWscripts/decodetree.py861CODE
LOWscripts/decodetree.py1043CODE
LOWscripts/decodetree.py1228CODE
67 more matches not shown…
Hyper-Verbose Identifiers117 hits · 120 pts
SeverityFileLineSnippetContext
LOWpython/qemu/utils/__init__.py45def get_info_usernet_hostfwd_port(info_usernet_output: str) -> Optional[int]:CODE
LOWpython/scripts/mkvenv.py841def _add_post_init_subcommand(subparsers: Any) -> None:CODE
LOWpython/scripts/mkvenv.py845def _add_ensuregroup_subcommand(subparsers: Any) -> None:CODE
LOWtarget/hexagon/hex_common.py347def read_idef_parser_enabled_file(name):CODE
LOWtests/tcg/multiarch/gdbstub/prot-none.py23def probe_proc_self_mem_access_prot_none():CODE
LOWtests/tcg/aarch64/gdbstub/test-sme.py30def run_basic_sme_za_gdbstub_support_test():CODE
LOWtests/tcg/aarch64/gdbstub/test-sme.py54def run_basic_sme_za_tile_slice_gdbstub_support_test():CODE
LOWtests/docker/docker.py269 def get_image_dockerfile_checksum(self, tag):CODE
LOWtests/qemu-iotests/iotests.py154def qemu_tool_pipe_and_status(tool: str, args: Sequence[str],CODE
LOWtests/qemu-iotests/iotests.py171def qemu_img_create_prepare_args(args: List[str]) -> List[str]:CODE
LOWtests/qemu-iotests/iotests.py665def filter_generated_node_ids(msg):CODE
LOWtests/qemu-iotests/iotests.py668def filter_qmp_generated_node_ids(qmsg):CODE
LOWtests/qemu-iotests/iotests.py1268 def assert_no_active_block_jobs(self):CODE
LOWtests/qemu-iotests/iotests.py1286 def assert_json_filename_equal(self, json_filename, reference):CODE
LOWtests/qemu-iotests/iotests.py1477def verify_virtio_scsi_pci_or_ccw() -> None:CODE
LOWtests/qemu-iotests/qcow2_format.py204 def bitmap_dir_entry_raw_size(self):CODE
LOWtests/qemu-iotests/fat16.py337 def next_free_cluster_non_continuous(self) -> int:CODE
LOWtests/migration-stress/guestperf/plot.py118 def _get_total_guest_cpu_graph(self, report, starttime):CODE
LOWtests/migration-stress/guestperf/plot.py150 def _get_split_guest_cpu_graphs(self, report, starttime):CODE
LOWtests/migration-stress/guestperf/plot.py194 def _get_migration_iters_graph(self, report, starttime):CODE
LOWtests/vm/basevm.py510 def get_qemu_packages_from_lcitool_json(self, json_path=None):CODE
LOWtests/vm/aarch64vm.py46def aarch_get_config_defaults(vmcls):CODE
LOWtests/image-fuzzer/qcow2/layout.py211 def create_feature_name_table(self):CODE
LOWtests/image-fuzzer/qcow2/layout.py259 def set_end_of_extension_area(self):CODE
LOWtests/image-fuzzer/qcow2/layout.py336 def create_refcount_structures(self):CODE
LOWtests/functional/aspeed.py10 def do_test_arm_aspeed_openbmc(self, machine, image, uboot='2019.04',CODE
LOWtests/functional/aspeed.py32 def do_test_arm_aspeed_buildroot_start(self, image, cpu_id, pattern='Aspeed EVB'):CODE
LOWtests/functional/aspeed.py49 def do_test_arm_aspeed_buildroot_poweroff(self):CODE
LOWtests/functional/aspeed.py53 def do_test_arm_aspeed_sdk_start(self, image):CODE
LOWtests/functional/migration.py86 def migration_with_tcp_localhost_vms(self, dst_vm, src_vm):CODE
LOWtests/functional/migration.py91 def migration_with_tcp_localhost(self):CODE
LOWtests/functional/m68k/test_nextcube.py26 def check_bootrom_framebuffer(self, screenshot_path):CODE
LOWtests/functional/m68k/test_nextcube.py52 def test_bootrom_framebuffer_size(self):CODE
LOWtests/functional/m68k/test_nextcube.py64 def test_bootrom_framebuffer_ocr_with_tesseract(self):CODE
LOWtests/functional/ppc64/test_migration.py13 def test_migration_with_tcp_localhost(self):CODE
LOWtests/functional/ppc64/test_powernv.py36 def shell_exec_command_check_fail(self, command):CODE
LOWtests/functional/ppc64/test_powernv.py91 def test_linux_remote_interrupts(self):CODE
LOWtests/functional/qemu_test/linuxkernel.py25 def wait_for_regex_console_pattern(self, success_pattern,CODE
LOWtests/functional/qemu_test/cmd.py30def is_readable_executable_file(path):CODE
LOWtests/functional/qemu_test/cmd.py52def _console_read_line_until_match(test, vm, success, failure):CODE
LOWtests/functional/qemu_test/cmd.py145def interrupt_interactive_console_until_pattern(test, success_message,CODE
LOWtests/functional/qemu_test/cmd.py209def exec_command_and_wait_for_pattern(test, command,CODE
LOWtests/functional/riscv64/test_endianness.py41 def test_bare_metal_littleendian(self):CODE
LOWtests/functional/riscv64/test_endianness.py48 def test_bare_metal_bigendian(self):CODE
LOW⚡tests/functional/riscv64/test_boston.py63 def test_boston_boot_linux_min_cpus(self):CODE
LOW⚡tests/functional/riscv64/test_boston.py69 def test_boston_boot_linux_max_cpus(self):CODE
LOW⚡tests/functional/riscv64/test_boston.py75 def test_boston_invalid_cpu_count(self):CODE
LOWtests/functional/riscv64/test_migration.py12 def test_migration_with_tcp_localhost(self):CODE
LOWtests/functional/s390x/test_secure_ipl.py48 def _require_host_secure_ipl_support(self, vm):CODE
LOWtests/functional/i386/test_migration.py12 def test_migration_with_tcp_localhost(self):CODE
LOWtests/functional/ppc/test_40p.py39 def test_factory_firmware_and_netbsd(self):CODE
LOWtests/functional/ppc/test_migration.py12 def test_migration_with_tcp_localhost(self):CODE
LOWtests/functional/mips/test_replay.py42 def test_replay_mips_malta_cpio(self):CODE
LOWtests/functional/riscv32/test_migration.py12 def test_migration_with_tcp_localhost(self):CODE
LOWtests/functional/sparc64/test_migration.py12 def test_migration_with_tcp_localhost(self):CODE
LOWtests/functional/generic/test_vnc.py33 def test_no_vnc_change_password(self):CODE
LOWtests/functional/generic/test_vnc.py65 def test_change_password_requires_a_password(self):CODE
LOWtests/functional/generic/test_monitor_hotplug.py219 def test_events_after_negotiation(self):CODE
LOWtests/functional/arm/test_migration.py12 def test_migration_with_tcp_localhost(self):CODE
LOWtests/functional/arm/test_cubieboard.py37 def test_arm_cubieboard_initrd(self):CODE
57 more matches not shown…
Self-Referential Comments19 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMqapi/block-core.json2401# Create a dirty bitmap with a name on the node, and startCOMMENT
MEDIUMqapi/machine.json476# Create a guest NUMA node. (for OptsVisitor)COMMENT
MEDIUMqapi/machine.json528# Create a CXL Fixed Memory WindowCOMMENT
MEDIUMqapi/net.json80# Create a new Network Interface Card.COMMENT
MEDIUMqapi/qom.json1397# Create a QOM object.COMMENT
MEDIUM.gitlab-ci.d/qemu-project.yml1# This file contains the set of jobs run by the QEMU project:COMMENT
MEDIUM.gitlab-ci.d/check-units.py41 # Create a sorted list by number of rebuildsCOMMENT
MEDIUMtests/docker/docker.py428 # Create a docker context directory for the buildCOMMENT
MEDIUMtests/docker/docker.py510 # Create a temporary tarball with our whole build context andCOMMENT
MEDIUMtests/docker/docker.py515 # Create a Docker buildfileCOMMENT
MEDIUMtests/qapi-schema/qapi-schema-test.json4# This file is a stress test of supported qapi constructs that mustCOMMENT
MEDIUMtests/functional/ppc64/test_tuxrun.py71 # Create a temporary qcow2 and launch the test-caseCOMMENT
MEDIUMdocs/conf.py18# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMscripts/meson-buildoptions.sh1# This file is generated by meson-buildoptions.py, do not edit!COMMENT
MEDIUMscripts/meson-buildoptions.py262 print("# This file is generated by meson-buildoptions.py, do not edit!")CODE
MEDIUMscripts/qemugdb/coroutine.py190 # Create a PTY pairCOMMENT
MEDIUMscripts/performance/dissect.py15# This file is a part of the project "TCG Continuous Benchmarking".COMMENT
MEDIUMscripts/performance/topN_perf.py16# This file is a part of the project "TCG Continuous Benchmarking".COMMENT
MEDIUMscripts/performance/topN_callgrind.py16# This file is a part of the project "TCG Continuous Benchmarking".COMMENT
Excessive Try-Catch Wrapping40 hits · 51 pts
SeverityFileLineSnippetContext
LOWpython/qemu/machine/machine.py416 except Exception as err: # pylint: disable=broad-exceptCODE
LOWpython/qemu/machine/machine.py638 except Exception as exc:CODE
LOWtests/tcg/i386/test-mmx.py165 except Exception as e:CODE
LOWtests/tcg/i386/test-avx.py245 except Exception as e:CODE
LOWtests/tcg/multiarch/gdbstub/prot-none.py39 except Exception as e:CODE
LOWtests/tcg/multiarch/gdbstub/prot-none.py47 except Exception as e:CODE
LOWtests/docker/docker.py327 except Exception:CODE
LOWtests/docker/docker.py598 except Exception:CODE
MEDIUMtests/docker/docker.py247def _output(self, cmd, **kwargs):CODE
MEDIUMtests/docker/docker.py594def run(self, args, argv):CODE
LOWtests/tracetool/tracetool-test.py85 except Exception as e:CODE
LOWtests/migration-stress/guestperf/shell.py198 except Exception as e:CODE
MEDIUMtests/migration-stress/guestperf/shell.py199 print("Error: %s" % str(e), file=sys.stderr)CODE
LOWtests/migration-stress/guestperf/shell.py245 except Exception as e:CODE
MEDIUMtests/migration-stress/guestperf/shell.py246 print("Error: %s" % str(e), file=sys.stderr)CODE
LOWtests/migration-stress/guestperf/engine.py529 except Exception as e:CODE
LOWtests/vm/basevm.py672 except Exception as e:CODE
MEDIUMtests/vm/basevm.py640def main(vmcls, config=None):CODE
MEDIUMtests/image-fuzzer/runner.py161 print("Error: The working directory '%s' cannot be used. Reason: %s"\CODE
MEDIUMtests/image-fuzzer/runner.py359 print("Error: %s\n\nTry 'runner.py --help' for more information" % e, file=sys.stderr)CODE
MEDIUMtests/image-fuzzer/runner.py376 print("Error: JSON array of test commands cannot be loaded.\n" \CODE
MEDIUMtests/image-fuzzer/runner.py391 print("Error: JSON array with the fuzzer configuration cannot" \CODE
MEDIUMtests/image-fuzzer/runner.py413 print("Error: The image generator '%s' cannot be imported.\n" \CODE
LOWtests/functional/reverse_debugging.py113 except Exception:CODE
LOWtests/functional/qemu_test/testcase.py338 except Exception:CODE
LOWtests/functional/qemu_test/testcase.py446 except Exception as ex:CODE
LOWtests/functional/qemu_test/asset.py195 except Exception as e:CODE
LOWtests/functional/ppc/test_ppe42.py28 except Exception as err:CODE
LOWtests/functional/ppc/test_ppe42.py54 except Exception as err:CODE
LOWtests/functional/x86_64/test_acpi_bits.py235 except Exception as e: # pylint: disable=broad-exceptCODE
LOWdocs/sphinx/kerneldoc.py141 except Exception as e: # pylint: disable=W0703CODE
LOWscripts/replay-dump.py447 except Exception as inst:CODE
LOWscripts/dump-guest-memory.py21except Exception as inst:CODE
LOWscripts/analyze-migration.py826except Exception:CODE
LOWscripts/qmp_helper.py337 except Exception as e: # pylint: disable=W0718CODE
MEDIUMscripts/qmp_helper.py540 print("Error injected.")CODE
LOWscripts/qapi/main.py38 except Exception as ex:CODE
LOWscripts/qapi/main.py49 except Exception as ex:CODE
LOWscripts/simplebench/bench_prealloc.py40 except Exception:CODE
LOWscripts/simplebench/img_bench_templater.py42 except Exception:CODE
Cross-Language Confusion10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHtests/docker/docker.py551 df.write("RUN id %s 2>/dev/null || useradd -u %d -U %s" %CODE
HIGHtests/functional/s390x/test_ccw_virtio.py62 exec_command_and_wait_for_pattern(self, 'dmesg -c > /dev/null; 'CODE
HIGHtests/functional/s390x/test_topology.py244 "done' && echo succ''ess || echo fail''ure",CODE
HIGHtests/functional/x86_64/test_nvme_migration.py43 f"{command} && echo OK || echo FAIL",CODE
HIGHscripts/qapi/visit.py197 if (!ok && visit_is_input(v)) {CODE
HIGHscripts/qapi/visit.py288 if (!ok && visit_is_input(v)) {CODE
HIGHscripts/qapi/visit.py323 if (!ok && visit_is_input(v)) {CODE
HIGHscripts/tracetool/format/rs.py30 ' (unsafe { trace_events_enabled_count }) != 0 && dstate != 0',CODE
HIGHscripts/qemugdb/mtree.py57 if not isnull(alias):CODE
HIGHscripts/qemugdb/mtree.py72 if not isnull(alias):CODE
AI Slop Vocabulary15 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMqapi/ui.json175# the head can only be specified in conjunction with the deviceCOMMENT
MEDIUMqapi/machine.json18# The comprehensive enumeration of QEMU system emulationCOMMENT
MEDIUMqapi/qom.json912# information read from devices and switches in conjunction withCOMMENT
MEDIUMqapi/virtio.json189# Poll for a comprehensive status of a given virtio deviceCOMMENT
LOWbsd-user/syscall_defs.h298#define TARGET_SO_DONTROUTE 0x0010 /* just use interface addresses */COMMENT
MEDIUMpython/qemu/machine/machine.py496 # Exclude harness-managed infrastructure args (harness_args)COMMENT
LOWpython/scripts/mkvenv.py669 # Double check that they didn't just use a version numberCOMMENT
MEDIUMinclude/libdecnumber/decNumberLocal.h60 #define DECCHECK 0 /* 1 to enable robust checking */COMMENT
LOWtests/vm/conf_example_x86.yml7 # If any of the below are not provided, we will just use the qemu defaults.COMMENT
LOWtests/vm/conf_example_aarch64.yml7 # If any of the below are not provided, we will just use the qemu defaults.COMMENT
MEDIUMtests/qapi-schema/test-qapi.py3# QAPI parser test harnessCOMMENT
MEDIUMdocs/sphinx/kerneldoc.py78 # FIXME: make this nicer and more robust against errorsCOMMENT
MEDIUMscripts/simpletrace.py329 # NOTE: See built-in `argparse` module for a more robust cli interfaceCOMMENT
MEDIUMscripts/vmstate-static-checker.py242 # Essentially we're opening the substructs that gotCOMMENT
LOWscripts/ci/coverage-summary.sh8# most likely don't want to execute this script but just call gcovrCOMMENT
Redundant / Tautological Comments17 hits · 26 pts
SeverityFileLineSnippetContext
LOWqapi/qom.json1041# Set this to 'on' to force compatibility with older QEMU or kernelCOMMENT
LOWtarget/hexagon/gen_printinsn.py81 # Check if the entire string t is an assignment.COMMENT
LOWtests/image-fuzzer/qcow2/layout.py387 # Check if the refcount table needs one more clusterCOMMENT
LOWtests/image-fuzzer/qcow2/layout.py390 # Check if the additional table cluster needsCOMMENT
LOWtests/functional/ppc64/test_fadump.py122 # Check if fadump is activeCOMMENT
LOWtests/functional/ppc64/test_fadump.py139 # Check if these logs are present in the fadump bootCOMMENT
LOWtests/functional/ppc64/test_fadump.py151 # Check if vmcore existsCOMMENT
LOWtests/functional/aarch64/test_hotplug_pci.py62 # Check if there is a new network adapter.COMMENT
LOWscripts/analyse-locks-simpletrace.py94 # Check if any locks still heldCOMMENT
LOWscripts/checkpatch.pl1969# Check if it's the start of a commit logCOMMENT
LOWscripts/checkpatch.pl1978# Check if there is UTF-8 in a commit log when a mail header has explicitlyCOMMENT
LOWscripts/checkpatch.pl2383 # Check if either of these lines are modified, elseCOMMENT
LOWscripts/lib/kdoc/kdoc_output.py330 # Print the output with the line prefixCOMMENT
LOWscripts/lib/kdoc/kdoc_parser.py850 # Output the result and we are done.COMMENT
LOWscripts/lib/kdoc/kdoc_parser.py1408 # Check if it's a SYSCALL_DEFINE0COMMENT
LOWscripts/performance/dissect.py143 # Print results (Insert commas in large numbers)COMMENT
LOWqga/qapi-schema.json376# Write file changes buffered in userspace to disk/kernel buffersCOMMENT
Modern Structural Boilerplate25 hits · 25 pts
SeverityFileLineSnippetContext
LOWpython/qemu/machine/machine.py694 def set_qmp_monitor(self, enabled: bool = True) -> None:CODE
LOWpython/qemu/machine/machine.py888 def set_machine(self, machine_type: str) -> None:CODE
LOWtests/qemu-iotests/qed.py19__all__ = ['QED_F_NEED_CHECK', 'QED']CODE
LOWtests/qemu-iotests/fat16.py454 def update_direntry(self, entry: FatDirectoryEntry) -> None:CODE
LOWdocs/sphinx/qapidoc.py83logger = logging.getLogger(__name__)CODE
LOWdocs/sphinx/qapidoc.py443 def set_namespace(self, namespace: str, source: str, lineno: int) -> None:CODE
LOWdocs/sphinx/dbusdoc.py44logger = logging.getLogger(__name__)CODE
LOWdocs/sphinx/qapi_domain.py56logger = logging.getLogger(__name__)CODE
LOWscripts/simpletrace.py19__all__ = ['Analyzer', 'Analyzer2', 'process', 'run']CODE
LOWscripts/compare-machine-types.py81 def set_implementations(self, implementations: List['Driver']) -> None:CODE
LOWscripts/compare-machine-types.py89 def set_implementations(self, implementations: List[Driver]) -> None:CODE
LOWscripts/minikconf.py23__all__ = [ 'KconfigDataError', 'KconfigParserError',CODE
LOWscripts/minikconf.py136 def set_value(self, val: bool, clause: KconfigData.Clause) -> None:CODE
LOWscripts/update-cargo-wraps.py151 def update_subproject(self, wrap_file: str, source_namever: str) -> None:CODE
LOWscripts/qapi/source.py46 def set_defn(self, meta: str, name: str) -> None:CODE
LOWscripts/qapi/schema.py105 def set_module(self, schema: QAPISchema) -> None:CODE
LOWscripts/qapi/schema.py483 def set_module(self, schema: QAPISchema) -> None:CODE
LOWscripts/qapi/schema.py727 def set_defined_in(self, name: str) -> None:CODE
LOWscripts/qapi/schema.py859 def set_defined_in(self, name: str) -> None:CODE
LOWscripts/codeconverter/converter.py24logger = logging.getLogger(__name__)CODE
LOWscripts/codeconverter/codeconverter/qom_macros.py17logger = logging.getLogger(__name__)CODE
LOWscripts/codeconverter/codeconverter/patching.py18logger = logging.getLogger(__name__)CODE
LOWscripts/codeconverter/codeconverter/utils.py11logger = logging.getLogger(__name__)CODE
LOWscripts/codeconverter/codeconverter/utils.py72__all__ = ['not_optional', 'opt_compare', 'merge', 'line_col', 'LineAndColumn']CODE
LOWscripts/codeconverter/codeconverter/regexps.py12logger = logging.getLogger(__name__)CODE
AI Structural Patterns15 hits · 15 pts
SeverityFileLineSnippetContext
LOWpython/qemu/utils/__init__.py62CODE
LOWpython/qemu/machine/machine.py123CODE
LOWtests/qemu-iotests/testenv.py198CODE
LOWtests/qemu-iotests/iotests.py721CODE
LOWtests/qemu-iotests/iotests.py1702CODE
LOWtests/migration-stress/guestperf/scenario.py23CODE
LOWtests/migration-stress/guestperf/hardware.py22CODE
LOWtests/image-fuzzer/qcow2/fuzz.py356CODE
LOWdocs/sphinx/dbusdoc.py158CODE
LOWdocs/sphinx/qapi_domain.py797CODE
LOWscripts/replay-dump.py91CODE
LOWscripts/qapi/types.py258CODE
LOWscripts/qapi/types.py278CODE
LOWscripts/qapi/commands.py287CODE
LOWscripts/lib/kdoc/kdoc_files.py240CODE
Fake / Example Data10 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/qapi-schema/doc-good.json50# 1. Lorem ipsum dolor sit ametCOMMENT
LOWtests/qapi-schema/doc-good.json50# 1. Lorem ipsum dolor sit ametCOMMENT
LOWtests/qapi-schema/doc-good.json177# - Lorem ipsum dolor sit ametCOMMENT
LOWtests/qapi-schema/doc-good.json177# - Lorem ipsum dolor sit ametCOMMENT
LOWtests/qapi-schema/doc-good.txt301. Lorem ipsum dolor sit ametCODE
LOWtests/qapi-schema/doc-good.txt301. Lorem ipsum dolor sit ametCODE
LOWtests/qapi-schema/doc-good.txt135 * Lorem ipsum dolor sit ametCOMMENT
LOWtests/qapi-schema/doc-good.txt135 * Lorem ipsum dolor sit ametCOMMENT
LOWdocs/sphinx/qapi_domain.py637 Lorem ipsum, dolor sit amet ...STRING
LOWdocs/sphinx/qapi_domain.py637 Lorem ipsum, dolor sit amet ...STRING
Slop Phrases5 hits · 10 pts
SeverityFileLineSnippetContext
LOWCargo.toml14# don't forget to update docs/devel/rust.rst msrvCOMMENT
LOWCargo.toml14# don't forget to update docs/devel/rust.rst msrvCOMMENT
MEDIUMqapi/ui.json1387# codes match their position on non-Mac keyboards and you can useCOMMENT
LOWui/vnc.h332 /* Encoding specific, if you add something here, don't forget toCOMMENT
MEDIUMpython/setup.cfg96# you want to run only the similarities checker, you can use "--disable=allCOMMENT
Example Usage Blocks7 hits · 10 pts
SeverityFileLineSnippetContext
LOWdocs/config/mach-virt-serial.cfg4# Usage:COMMENT
LOWdocs/config/q35-virtio-serial.cfg4# Usage:COMMENT
LOWdocs/config/q35-virtio-graphical.cfg4# Usage:COMMENT
LOWdocs/config/mach-virt-graphical.cfg4# Usage:COMMENT
LOWdocs/config/q35-emulated.cfg4# Usage:COMMENT
LOWscripts/qemu-gdb.py13# Usage:COMMENT
LOWscripts/qom-cast-macro-clean-cocci-gen.py5# Usage:COMMENT
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMscripts/codeconverter/codeconverter/qom_type_info.py936CODE
MEDIUMscripts/codeconverter/codeconverter/qom_macros.py640CODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtarget/arm/tcg/op_helper.c330 /* If we are currently in EL0 then we need to check if SCTLR is set up forCOMMENT
LOWsystem/physmem.c2742 /* We need to check if the requested address is in the RAMCOMMENT