kernel: refactor our kernel generation code#1465
Merged
brianmcgillion merged 7 commits intotiiuae:mainfrom Oct 17, 2025
Merged
Conversation
move the config for pkvm up, so it can be applied as required. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
Move the tests up, so they can be more generically applied and run. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
Keep the kernel modules with the kernel configs and not in the toplevel packages for better alignment and modularity. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
Each kernel, Guest and host should have their own configurations. Making this explicit. This PR does not update the hardening baseline that is in use. It just creates a baseline to allow that in a follow on work Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
The profile is the correct place to define the hardening config that is to be used for a particular target. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
7dd3874 to
cd66ef2
Compare
Create explicit modules for the kernel that can be included in the respective vms or the host. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
cd66ef2 to
af11675
Compare
Include the definition of the kernel into each of the VMs and the host. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
af11675 to
4474782
Compare
vunnyso
approved these changes
Oct 17, 2025
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.
Consolidate the kernel configuration code for both the host and the guests.
Make explicit modules for these kernels.
This PR does not add or update the hardening configuration. I is the ground work to allow for a hardended configuration in the future. However, it does align the kernel versions that are in use in the x86_64 targets.
Description of Changes
Type of Change
Related Issues / Tickets
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify: