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

xapi-project / xen-api / 16131860473
80%
master: 80%

Build:
Build:
LAST BUILD BRANCH: dev/pau/majmin
DEFAULT BRANCH: master
Ran 08 Jul 2025 01:41AM UTC
Jobs 1
Files 34
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

08 Jul 2025 01:40AM UTC coverage: 80.345% (+2.6%) from 77.719%
16131860473

push

github

web-flow
CA-393417: Drop device controller of cgroup v1 and fix USB passthrough for XS9 (#6572)

The approach work for both XS8 and XS9

- 4357061 for xs9
- 4357062 for xs8

```
Date:   Fri Jul 4 15:40:00 2025 +0800

    CA-393417: Bind mount /proc/<pid> into chroot

    From strace/gdb, XS9 qemu requires /proc/self/fd/<fd> to work well
    This is due to systemd/libudev update.

    Just bind mount /proc/self/ to the chroot to permit qemu access

    ```
    1047 openat(AT_FDCWD, "/proc/self/fd/46", O_RDONLY|O_NOCTTY|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
    1048 openat(AT_FDCWD, "/proc/", O_RDONLY|O_NOCTTY|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)

        ../sysdeps/unix/sysv/linux/fstatfs64.c:30
        out>, dir_fd=<optimized out>) at ../src/basic/stat-util.c:566
        magic_value=1650812274) at ../src/basic/stat-util.c:369
        fd=<optimized out>) at ../src/basic/stat-util.h:66
        verify=<optimized out>) at
    ../src/libsystemd/sd-device/sd-device.c:221
        (ret=0x7ffc67ebba20, syspath=0x7ffc67ebb950
    "/sys/bus/usb/devices/usb1", strict=true)
        at ../src/libsystemd/sd-device/sd-device.c:271
        (syspath=0x7ffc67ebb950 "/sys/bus/usb/devices/usb1",
    ret=0x7ffc67ebba20)
        at ../src/libsystemd/sd-device/sd-device.c:280
    ```

    Signed-off-by: Lin Liu <Lin.Liu01@cloud.com>

commit fc5f98b80
Author: Lin Liu <Lin.Liu01@cloud.com>
Date:   Tue Jul 1 15:56:18 2025 +0800

    CA-393417: Drop device controller of cgroup v1

    For deprivileged qemu, following ops are performed
    - bind mount /dev/ to qemu chroot, so qemu can access it
    - cgroup controller deny all devices, except the target usb device

    However, new XS updated to cgroup v2 and the devices controller
    available anymore.

    Instead of bind mount all /dev folder, only the permitted usb
    devices are created into the chroot. Thus, the cgroup controller
    is no longer necessary.

... (continued)

126 of 147 new or added lines in 4 files covered. (85.71%)

1 existing line in 1 file now uncovered.

3491 of 4345 relevant lines covered (80.35%)

0.8 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.88
python3/tests/test_usb_reset.py
20
59.69
42.77% python3/libexec/usb_reset.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
59.69
42.77% python3/libexec/usb_reset.py
Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 16131860473.1 08 Jul 2025 01:41AM UTC 34
80.35
GitHub Action Run
Source Files on build 16131860473
  • Tree
  • List 34
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16131860473
  • 5a4e1096 on github
  • Prev Build on gh-readonly-queue/master/pr-6579-a124c37bb174d247b96ef9a30cc3fc91778937c6 (#16119280313)
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