From c8047d831018a2bc301d871fe98d313c5bfcea7e Mon Sep 17 00:00:00 2001 From: Stefan Catargiu <13122921+5kt@users.noreply.github.com> Date: Wed, 25 Mar 2026 15:55:35 +0100 Subject: [PATCH] Load kvm_* only when the proper cpu is present --- features/sci/file.include/etc/modprobe.d/kvm-amd.conf | 1 + features/sci/file.include/etc/modprobe.d/kvm-intel.conf | 1 + 2 files changed, 2 insertions(+) create mode 100644 features/sci/file.include/etc/modprobe.d/kvm-amd.conf create mode 100644 features/sci/file.include/etc/modprobe.d/kvm-intel.conf diff --git a/features/sci/file.include/etc/modprobe.d/kvm-amd.conf b/features/sci/file.include/etc/modprobe.d/kvm-amd.conf new file mode 100644 index 00000000..79910fc2 --- /dev/null +++ b/features/sci/file.include/etc/modprobe.d/kvm-amd.conf @@ -0,0 +1 @@ +install kvm_amd if grep -q AuthenticAMD /proc/cpuinfo; then modprobe --ignore-install kvm_amd; else echo "WARNING kvm_amd: no AMD cpu found, skipping"; exit 0; fi diff --git a/features/sci/file.include/etc/modprobe.d/kvm-intel.conf b/features/sci/file.include/etc/modprobe.d/kvm-intel.conf new file mode 100644 index 00000000..67abf1e0 --- /dev/null +++ b/features/sci/file.include/etc/modprobe.d/kvm-intel.conf @@ -0,0 +1 @@ +install kvm_intel if grep -q GenuineIntel /proc/cpuinfo; then modprobe --ignore-install kvm_intel; else echo "WARNING kvm_intel: no Intel cpu found, skipping"; exit 0; fi