Skip to content

Commit

Permalink
github: check with KVM support
Browse files Browse the repository at this point in the history
KVM is supported on "larger Linux runners" ...

  https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/

... which is the default runner for public GitHub repos since January:

  https://github.blog/2024-01-17-github-hosted-runners-double-the-power-for-open-source/

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
  • Loading branch information
matttbe committed May 3, 2024
1 parent 69418b7 commit 938305d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,16 @@ jobs:

# Run `uname -r` using a vanilla v6.6 kernel
- run: ./vng -r v6.6 -- uname -r

# Setup KVM support
- name: "KVM support"
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# Re-run with KVM support
- name: "Check KVM support"
run: |
clocksource="/sys/devices/system/clocksource/clocksource0/current_clocksource"
[ "$(./vng -r v6.6 -- cat "${clocksource}")" = "kvm-clock" ]

0 comments on commit 938305d

Please sign in to comment.