Skip to content

Commit 2e15fd3

Browse files
anokfireballfwiesel
authored andcommitted
sci: load kvm modules via modules-load.d to fix libvirtd boot race
libvirtd's Cloud Hypervisor driver does a one-time /dev/kvm existence check at init (ch_conf.c). If /dev/kvm doesn't exist at that moment the driver is permanently skipped with no retry. kvm_amd/kvm_intel are loaded by udev (non-deterministic), not by systemd-modules-load.service (which runs Before=sysinit.target). This creates a race: libvirtd can start before /dev/kvm is created. Adding kvm.conf to modules-load.d moves loading to systemd-modules-load.service, which is guaranteed to complete before libvirtd starts (via the sysinit.target -> multi-user.target chain). The arch-mismatched module fails harmlessly with -EOPNOTSUPP. Fixes intermittent CI failures in Test CloudHypervisor jobs.
1 parent f116c03 commit 2e15fd3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • features/sci/file.include/etc/modules-load.d
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kvm
2+
kvm_amd
3+
kvm_intel

0 commit comments

Comments
 (0)