• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / alioth / 20385931445
26%

Build:
DEFAULT BRANCH: main
Ran 20 Dec 2025 12:13AM UTC
Jobs 1
Files 104
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Dec 2025 12:07AM UTC coverage: 26.199% (-0.02%) from 26.22%
20385931445

push

github

Lencerf
fix(hv): distinguish between VCPU index and identity

Alioth uses a VCPU index (0..num_cpus) to manage VCPUs internally.
However, the underlying hypervisor or the hardware uses an
architecture-dependent identity for each CPU, such as MPIDR on aarch64
and APIC ID on x86_64.

This commit introduces a clear distinction between the VCPU index and
the VCPU identity:

- The VCPU index is consistently represented as `u16`.
- A new method `encode_cpu_identity(index: u16) -> u64` is added to
  struct `Board` to translate an index into the corresponding identity.
- The `Vm::create_vcpu` method is updated to accept both the index and
  the identity.
- On aarch64, Alioth now generates and provides the MPIDR to the
  hypervisor, ensuring a consistent CPU topology.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>

394 of 638 branches covered (61.76%)

Branch coverage included in aggregate %.

9 of 138 new or added lines in 13 files covered. (6.52%)

7 existing lines in 6 files now uncovered.

3403 of 13855 relevant lines covered (24.56%)

21.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% alioth/src/hv/kvm/vm/vm_aarch64.rs
4
0.0
0.0% alioth/src/hv/hvf/vcpu/vmexit.rs
4
0.0
0.0% alioth/src/hv/kvm/vm/vm.rs
5
0.0
0.0% alioth/src/firmware/acpi/acpi.rs
5
0.0
-3.75% alioth/src/hv/hvf/vcpu/vcpu.rs
6
0.0
0.0% alioth/src/hv/kvm/vcpu/vcpu_x86_64.rs
7
0.0
0.0% alioth/src/hv/kvm/vcpu/vcpu.rs
8
0.0
0.0% alioth/src/hv/kvm/vcpu/vcpu_aarch64.rs
9
0.0
0.0% alioth/src/hv/hvf/vm.rs
10
0.0
0.0% alioth/src/vm.rs
17
2.13
2.13% alioth/src/board/board_aarch64.rs
18
0.0
0.0% alioth/src/board/board_x86_64.rs
35
0.0
0.0% alioth/src/board/board.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
2.13
2.13% alioth/src/board/board_aarch64.rs
1
0.0
0.0% alioth/src/hv/hvf/vcpu/vmexit.rs
1
0.0
0.0% alioth/src/hv/kvm/vcpu/vcpu_aarch64.rs
1
0.0
0.0% alioth/src/hv/kvm/vm/vm.rs
1
0.0
0.0% alioth/src/vm.rs
2
0.0
0.0% alioth/src/board/board.rs
Jobs
ID Job ID Ran Files Coverage
1 20385931445.1 20 Dec 2025 12:13AM UTC 104
26.2
GitHub Action Run
Source Files on build 20385931445
  • Tree
  • List 104
  • Changed 15
  • Source Changed 15
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #20385931445
  • 00ca1898 on github
  • Prev Build on main (#20377765706)
  • Next Build on main (#20386865102)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc