A Virtual Machine Monitor for modern Cloud workloads. Features include CPU, memory and device hotplug, support for running Windows and Linux guests, device offload with vhost-user and a minimal compact footprint. Written in Rust with a strong focus on security.
This report summarizes scanner evidence for cloud-hypervisor/cloud-hypervisor, a Rust project with 6,448 GitHub stars. SynthScan examined 228,825 lines of code across 456 source files, recording 338 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 1.6 (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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 333 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 338 finding(s).
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.
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.
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.
The scanner identified 338 distinct pattern matches across 12 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tracer/src/lib.rs | 1 | // Copyright © 2022 Intel Corporation | COMMENT |
| LOW | pci/src/device.rs | 21 | /// Setup of the device capabilities failed. | COMMENT |
| LOW | pci/src/device.rs | 81 | /// Gets a register from the configuration space. | COMMENT |
| LOW | pci/src/msix.rs | 541 | pub struct MsixCap { | COMMENT |
| LOW | pci/src/vfio.rs | 1821 | COMMENT | |
| LOW | pci/src/vfio.rs | 2301 | COMMENT | |
| LOW | pci/src/vfio.rs | 2321 | // check skips carving a hole, preventing invalid offsets from | COMMENT |
| LOW | pci/src/msi.rs | 41 | #[derive(Error, Debug)] | COMMENT |
| LOW | pci/src/msi.rs | 61 | // Message Address (LSB) | COMMENT |
| LOW | pci/src/bus.rs | 141 | Ok(()) | COMMENT |
| LOW | virtio-devices/src/device.rs | 81 | /// resets its internal. | COMMENT |
| LOW | virtio-devices/src/device.rs | 201 | /// Trait to define address translation for devices managed by virtio-iommu | COMMENT |
| LOW | virtio-devices/src/lib.rs | 1 | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | COMMENT |
| LOW | virtio-devices/src/balloon.rs | 1 | // Copyright (c) 2020 Ant Financial | COMMENT |
| LOW | virtio-devices/src/block.rs | 1 | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | COMMENT |
| LOW | virtio-devices/src/iommu.rs | 41 | COMMENT | |
| LOW | virtio-devices/src/mem.rs | 1 | // Copyright (c) 2020 Ant Financial | COMMENT |
| LOW | virtio-devices/src/mem.rs | 61 | // - VIRTIO_MEM_REQ_STATE | COMMENT |
| LOW | virtio-devices/src/vsock/device.rs | 21 | use seccompiler::SeccompAction; | COMMENT |
| LOW | virtio-devices/src/vsock/device.rs | 81 | /// 3. Fetch incoming packets from the `VsockBackend` and place them into the virtio RX queue; | COMMENT |
| LOW | virtio-devices/src/vsock/mod.rs | 41 | /// Connection clean shutdown. | COMMENT |
| LOW | virtio-devices/src/vsock/mod.rs | 81 | GuestMemoryAccess(#[source] vm_memory::GuestMemoryError), | COMMENT |
| LOW | virtio-devices/src/vsock/mod.rs | 121 | COMMENT | |
| LOW | virtio-devices/src/vsock/packet.rs | 1 | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | COMMENT |
| LOW | virtio-devices/src/vsock/packet.rs | 41 | // le32 dst_port; | COMMENT |
| LOW | virtio-devices/src/vsock/packet.rs | 81 | // - VSOCK_OP_REQUEST: connection request; | COMMENT |
| LOW | virtio-devices/src/vsock/unix/muxer_rxq.rs | 1 | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | COMMENT |
| LOW | virtio-devices/src/vsock/unix/muxer_rxq.rs | 61 | } | COMMENT |
| LOW | virtio-devices/src/vsock/unix/muxer_killq.rs | 1 | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | COMMENT |
| LOW | virtio-devices/src/vsock/unix/mod.rs | 41 | EpollFdCreate(#[source] io::Error), | COMMENT |
| LOW | virtio-devices/src/vsock/unix/muxer.rs | 1 | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | COMMENT |
| LOW | virtio-devices/src/vsock/unix/muxer.rs | 21 | //! belong to an existing connection and, as such, the muxer simply forwards them. | COMMENT |
| LOW | virtio-devices/src/vsock/unix/muxer.rs | 101 | buf: [u8; PARTIALLY_READ_COMMAND_BUF_SIZE], | COMMENT |
| LOW | virtio-devices/src/vsock/unix/muxer.rs | 141 | /// Deliver a vsock packet to the guest vsock driver. | COMMENT |
| LOW | virtio-devices/src/vsock/csm/mod.rs | 61 | LocalClosed(bool, bool), | COMMENT |
| LOW | virtio-devices/src/vsock/csm/txbuf.rs | 141 | } | COMMENT |
| LOW | virtio-devices/src/vsock/csm/connection.rs | 1 | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | COMMENT |
| LOW | virtio-devices/src/vsock/csm/connection.rs | 21 | //! the guest driver provides some data in a virtio TX buffer, the vsock device must | COMMENT |
| LOW | virtio-devices/src/vsock/csm/connection.rs | 41 | // packet. Two header flags are used with VSOCK_OP_SHUTDOWN, indicating the sender's | COMMENT |
| LOW | virtio-devices/src/vsock/csm/connection.rs | 61 | // packet header members with each packet they send: | COMMENT |
| LOW | virtio-devices/src/vsock/csm/connection.rs | 121 | tx_buf: TxBuf, | COMMENT |
| LOW | virtio-devices/src/vsock/csm/connection.rs | 141 | /// half-closed its send side. | COMMENT |
| LOW | virtio-devices/src/vsock/csm/connection.rs | 161 | /// | COMMENT |
| LOW | virtio-devices/src/vsock/csm/connection.rs | 661 | /// Warning: this will bypass the connection state machine and write directly to the | COMMENT |
| LOW | virtio-devices/src/transport/pci_device.rs | 1281 | .contains(&o) => | COMMENT |
| LOW | virtio-devices/src/transport/pci_common_config.rs | 101 | } | COMMENT |
| LOW | vhost_user_net/src/lib.rs | 41 | /// Failed to create kill eventfd. | COMMENT |
| LOW | net_util/src/ctrl_queue.rs | 401 | assert_eq!(run_mq_vq_pairs_set(1, 4), (VIRTIO_NET_OK as u8, 1)); | COMMENT |
| LOW | net_util/src/tap.rs | 41 | IfnameTooLong(String), | COMMENT |
| LOW | LICENSES/BSD-3-Clause.txt | 1 | // Copyright 2017 The Chromium OS Authors. All rights reserved. | COMMENT |
| LOW | LICENSES/BSD-3-Clause.txt | 21 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | COMMENT |
| LOW | vm-allocator/src/lib.rs | 1 | // Copyright 2018 The Chromium OS Authors. All rights reserved. | COMMENT |
| LOW | vm-allocator/src/address.rs | 21 | } | COMMENT |
| LOW | vm-allocator/src/system.rs | 1 | // Copyright 2018 The Chromium OS Authors. All rights reserved. | COMMENT |
| LOW | vm-allocator/src/system.rs | 21 | /// | COMMENT |
| LOW | vm-allocator/src/system.rs | 41 | /// #[cfg(target_arch = "aarch64")] | COMMENT |
| LOW | tpm/src/emulator.rs | 241 | ))); | COMMENT |
| LOW | vhost_user_block/src/lib.rs | 61 | FailedConfigParse(#[source] OptionParserError), | COMMENT |
| LOW | cloud-hypervisor/tests/integration_cvm.rs | 1 | // Copyright 2026 The Cloud Hypervisor Authors. All rights reserved. | COMMENT |
| LOW | cloud-hypervisor/tests/integration.rs | 1 | // Copyright © 2020 Intel Corporation | COMMENT |
| 256 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | virtio-devices/src/vsock/csm/connection.rs | 57 | // receiving peer's behavior is undefined. In this implementation, we forcefully terminate | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/package-consistency-check.py | 59 | print(f"Error: Multiple versions detected for {pkg_name}: {set(versions)}") | CODE |
| MEDIUM | scripts/package-consistency-check.py | 74 | print("Error: Metadata is empty") | CODE |
| MEDIUM | scripts/fetch_workloads.py | 253 | print(f"Error: asset file not found: {asset_file}", file=sys.stderr) | CODE |
| LOW | scripts/fetch_workloads.py | 296 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | pci/src/configuration.rs | 1950 | // Step 1: Probe 32-bit BAR 0 size by writing all ones. | COMMENT |
| LOW⚡ | pci/src/configuration.rs | 1953 | // Step 2: Write 0 to unused BAR 1. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | pci/src/configuration.rs | 1950 | // Step 1: Probe 32-bit BAR 0 size by writing all ones. | COMMENT |
| LOW⚡ | pci/src/configuration.rs | 1953 | // Step 2: Write 0 to unused BAR 1. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/run_integration_tests_windows_aarch64.sh | 28 | # Check if the images are present | COMMENT |
| LOW | scripts/run_integration_tests_windows_x86_64.sh | 33 | # Check if the images are present | COMMENT |
| LOW | scripts/run_integration_tests_aarch64.sh | 137 | # Check if there is any error in the execution of `update_workloads`. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/package-consistency-check.py | 52 | CODE | |
| LOW | scripts/fetch_workloads.py | 36 | CODE | |
| LOW | scripts/fetch_workloads.py | 124 | CODE | |
| LOW | scripts/fetch_workloads.py | 233 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/test-util.sh | 360 | # Define the command to copy the file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/generate-fuzz-seeds.sh | 116 | # VMDK seeds. The harness supplies the extent files. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/package-consistency-check.py | 25 | def find_dependents_of_package(metadata, package_source): | CODE |
| LOW | scripts/package-consistency-check.py | 52 | def check_for_version_conflicts(packages, direct_dependents): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cloud-hypervisor/tests/integration.rs | 9107 | // TODO: Add test of live upgrade paused vm after cloud-hypervisor-static | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/fetch_workloads.py | 17 | CODE |