From 46e6d1150b6b628a5a47a6dea6598f1509b28184 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Tue, 12 May 2026 20:22:21 +0000 Subject: [PATCH 1/2] config: enable KVM host support on x86_64 Enable CONFIG_KVM, CONFIG_KVM_INTEL, and CONFIG_KVM_AMD as built-in so the guest kernel can act as a KVM host. This is needed for nested virtualization: when libkrun exposes VMX/SVM CPUID bits to the guest (via krun_set_nested_virt), the guest kernel needs KVM support to create /dev/kvm and run VMs. Both Intel and AMD variants are enabled so the same kernel binary works on either vendor. Assisted-by: Signed-off-by: Dusty Mabe --- config-libkrunfw_x86_64 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config-libkrunfw_x86_64 b/config-libkrunfw_x86_64 index 68546247..eb6d363a 100644 --- a/config-libkrunfw_x86_64 +++ b/config-libkrunfw_x86_64 @@ -485,7 +485,9 @@ CONFIG_HALTPOLL_CPUIDLE=y CONFIG_HAVE_KVM=y CONFIG_VIRTUALIZATION=y -# CONFIG_KVM is not set +CONFIG_KVM=y +CONFIG_KVM_INTEL=y +CONFIG_KVM_AMD=y CONFIG_AS_AVX512=y CONFIG_AS_SHA1_NI=y CONFIG_AS_SHA256_NI=y From e97350d2a8a28430a7f71fe60c09042fbb515071 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Tue, 12 May 2026 20:22:48 +0000 Subject: [PATCH 2/2] config: enable KVM host support on aarch64 Enable CONFIG_VIRTUALIZATION and CONFIG_KVM in the aarch64 kernel config for nested virtualization support. On ARM64 there are no separate vendor-specific KVM modules (unlike x86_64's KVM_INTEL and KVM_AMD). Assisted-by: Signed-off-by: Dusty Mabe --- config-libkrunfw_aarch64 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config-libkrunfw_aarch64 b/config-libkrunfw_aarch64 index afed67bc..8af53f66 100644 --- a/config-libkrunfw_aarch64 +++ b/config-libkrunfw_aarch64 @@ -528,7 +528,8 @@ CONFIG_ARCH_SUSPEND_POSSIBLE=y # end of CPU Power Management CONFIG_HAVE_KVM=y -# CONFIG_VIRTUALIZATION is not set +CONFIG_VIRTUALIZATION=y +CONFIG_KVM=y CONFIG_CPU_MITIGATIONS=y #