Skip to content

Commit

Permalink
add KVM support
Browse files Browse the repository at this point in the history
  • Loading branch information
ansavin committed Aug 24, 2024
1 parent ccd1151 commit d0f669a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/run_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,17 @@ jobs:
- uses: actions/checkout@v4

# Run `uname -r` using a vanilla v6.6 kernel
- run: vng -r v6.9 -- uname -r
- run: vng -r v6.9 -- 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.9 -- cat "${clocksource}")" = "kvm-clock" ]

0 comments on commit d0f669a

Please sign in to comment.