Skip to content

Enable generic sandbox kernel capabilities - #113

Open
Enrique Saurez (esaurez) wants to merge 1 commit into
devfrom
esaurez/nvx-platform/01-kernel-20260918
Open

Enrique Saurez (esaurez) wants to merge 1 commit into
devfrom
esaurez/nvx-platform/01-kernel-20260918

Conversation

@esaurez

Copy link
Copy Markdown
Contributor

Summary

Enable the generic Linux kernel capabilities required by sandbox workloads without selecting or embedding a product-specific guest agent.

Main changes

  • Enable Unix-domain sockets and seccomp filtering in the microVM kernel configuration.
  • Disable unconditional overlayfs redirect following.
  • Enforce the required settings in source-tree, generated-config, release, and unit-test validation.
  • Document the platform capability contract.

Rationale

NVX owns the Linux kernel configuration distributed to downstream products. Keeping these workload capabilities and their validation in NVX prevents product build systems from patching or weakening the kernel configuration independently.

The existing OpenVMM gitlink from dev is unchanged.

Copilot AI balanced review requested due to automatic review settings September 18, 2026 16:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The capability and validation changes are complete; the remaining diagnostic wording issue is minor.

Pull request overview

Enables and validates generic kernel capabilities required by sandbox workloads.

Changes:

  • Enables Unix sockets and seccomp filtering.
  • Disables unconditional overlayfs redirect following.
  • Extends build, release, test, and documentation validation.
File summaries
File Description
kernel/config-microvm Enables required kernel capabilities.
scripts/nvx_tools/build.py Adds capabilities to build-time validation.
scripts/nvx_tools/release.py Validates source and generated configurations.
scripts/test_nvx_tools.py Tests every required setting.
doc/build.md Documents the capability contract.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/nvx_tools/build.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The configuration changes are consistently enforced across build, verification, tests, and documentation.

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

Define the microVM kernel options required by generic sandbox workloads
as a shared build and release contract.

Require seccomp filtering and safe overlayfs redirect behavior, and
preserve the existing Unix-domain socket setting alongside the
filesystem, memory-cgroup, and virtio block requirements. Fail kernel
builds when olddefconfig drops any required option.

Reuse the same requirement list when verifying checked-in sources and
generated release artifacts so configuration drift is caught
consistently. Expand unit coverage to remove each required setting in
turn and document the resulting kernel contract.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 54ea5030-072c-440a-87f8-f607431664b8
Copilot AI review requested due to automatic review settings September 18, 2026 18:51
@ppenna
Pedro Henrique Penna (ppenna) force-pushed the esaurez/nvx-platform/01-kernel-20260918 branch from 0116efe to 92519ca Compare September 18, 2026 18:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The generated-config release validation lacks direct unit-test coverage.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Balanced

for setting in (
"CONFIG_PVH=y",
"CONFIG_HVC_XE9=y",
*REQUIRED_SANDBOX_KERNEL_CONFIG,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants