config: enable KVM in embedded kernel #125
Merged
Merged
Conversation
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: <anthropic/claude-opus-4.6> Signed-off-by: Dusty Mabe <dusty@dustymabe.com>
Collaborator
|
Thanks for the contribution. The SEV commit can be removed, as I don't think we'd support that at the moment. |
d80d9ba to
eef0137
Compare
tylerfanelli
requested changes
May 12, 2026
Collaborator
tylerfanelli
left a comment
There was a problem hiding this comment.
SEV nested virt can be removed.
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: <anthropic/claude-opus-4.6> Signed-off-by: Dusty Mabe <dusty@dustymabe.com>
eef0137 to
e97350d
Compare
Contributor
Author
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are 3 commits here to enable nested virtualization support in the libkrun VM.
This is needed to leverage containers/libkrun#630 because if the kernel doesn't have these modules built in then
/dev/kvmdefinitely won't be there.These chanes were assisted by
anthropic/claude-opus-4.6.