Commit Graph

19811 Commits

Author SHA1 Message Date
Aurélien Bombo
52925d2966 ci.gatekeeper: Alias linked ci-devel results
Jobs in a manually triggered run inherit the ci-devel workflow name.

They therefore cannot satisfy required names belonging to regular CI or self-hosted static checks.

Match jobs from the validated run under those two workflow names and reuse the current required-job filtering and status handling.

Generated-By: GitHub Copilot
Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
2026-07-24 16:21:14 -05:00
Aurélien Bombo
5aeae8ebe0 ci.gatekeeper: Ignore overlapping regular runs
A linked ci-devel run and regular CI can report the same required job names.

The existing newest-run rule can therefore select regular results based only on run timing.

Ignore regular CI and self-hosted runs replaced by validated ci-devel while retaining every non-overlapping required workflow.

Generated-By: GitHub Copilot
Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
2026-07-24 16:21:14 -05:00
Aurélien Bombo
46ae792ff2 ci.gatekeeper: Recognize linked ci-devel runs
Gatekeeper requires ok-to-test before checking required jobs, even when a maintainer has dispatched ci-devel for the pull request tip.

Recognize the first linked ci-devel run only when its workflow, event, and commit match.

Use that run as alternate authorization and link it from the gatekeeper step summary. Invalid links retain the regular path.

Generated-By: GitHub Copilot
Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
2026-07-24 16:21:14 -05:00
Aurélien Bombo
4dd74798c0 ci: Run self-hosted checks in ci-devel
The manually triggered CI only runs build checks on ubuntu-22.04, while required self-hosted checks run on ARM, s390x, and ppc64le.

Use the same runner instance matrix in ci-devel so its run can cover those required self-hosted checks when gatekeeper consumes manual results.

Generated-By: GitHub Copilot
Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
2026-07-24 16:20:30 -05:00
Fabiano Fidêncio
8dd6c88819 Merge pull request #13427 from kata-containers/nvgpu/chisel-via-sandboxutils-filelist
nvidia-gpu: chisel NVIDIA libs from sandboxutils-filelist.json
2026-07-24 19:56:00 +02:00
Fabiano Fidêncio
53699658cb Merge pull request #13467 from fidencio/topic/ci-arm64-restrict-runs
ci: Disable k8s tests on arm64
2026-07-24 16:28:15 +02:00
Zvonko Kaiser
f4b0e1a88c nvidia-gpu: chisel NVIDIA libs from sandboxutils-filelist.json
Replace the broad libnv*/libcuda.so.* globs in chisseled_compute() with
nvidia_driver_capabilities(), a jq-based helper that queries the
driver-authoritative sandboxutils-filelist.json shipped at
usr/share/nvidia/files.d/ in every NVIDIA driver install.

The function accepts a file type (LIB, BINARY, ICD, FIRMWARE, ...) and
a list of capability categories, so the same filelist drives selection
of libs, binaries, and ICD registration files consistently.

Categories selected for LIB: cuda, opencl, nvml, nvpd, video,
nvsandboxutils. Graphics categories (egl*, glx, vulkan, ngx, optix,
gbm, utils, xdriver) are excluded, kata runs headless workloads only.

libnvidia-allocator is trusted to be graphics-only as the filelist
declares: no compute library (libcuda, libnvidia-ml, libnvidia-gpucomp,
libnvidia-opencl) references it, only libnvidia-eglcore and
libnvidia-glcore do, and its gbm backend role is display buffer
allocation. No compute-side override is carried.

Also fixes two gaps the old explicit copy list had missed:
  nvidia-cuda-mps-control/server  missing despite being cuda category
  nvidia.icd                      missing, needed for OpenCL discovery

Saves ~208 MB in usr/lib before strip/UPX:

  libnvoptix.so            46.8 MB  OptiX ray tracing
  libnvidia-rtcore.so      40.1 MB  ray tracing
  libnvidia-glcore.so      38.0 MB  OpenGL
  libnvidia-eglcore.so     36.1 MB  EGL
  libnvperf_dcgm_host.so   17.9 MB  Nsight profiling SDK
  libnvidia-vksc-core.so   10.6 MB  Vulkan SC
  libnvidia-glvkspirv.so    9.9 MB  Vulkan SPIR-V

libnvidia-pkcs11* is copied unconditionally: the gpu extension is built
without a type tag, so any confidential-only gate strips the TEE
attestation libs from extension images. The old explicit conditional
also used the wrong libdir (lib/ instead of usr/lib/) and was dead
code; it is removed. The libs cost a few hundred KB and the monolith
split will make the distinction moot anyway.

The capability arrays are validated to be non-empty after extraction:
failures inside the mapfile process substitutions do not propagate
under set -e, and an empty selection must fail the build instead of
producing a rootfs with no NVIDIA userspace.

Assisted-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
2026-07-24 14:27:26 +00:00
Fabiano Fidêncio
b84147b26a ci: Disable k8s tests on arm64
We partially cover them with the NVIDIA CPU k8s tests and as we only
have one runner up, let's focus on the qemu-coco-dev-runtime-rs tests.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
2026-07-24 14:37:27 +02:00
Alex Lyn
e49ad473bb Merge pull request #13338 from microsoft/saul/sync_shim_cgroup
runtime-rs: resource: place the runtime in the sandbox cgroup synchronously
2026-07-24 09:13:58 +08:00
Alex Lyn
4900742a67 Merge pull request #13423 from justxuewei/net-dev-mgr
dragonball: Merge the three network device managers into one
2026-07-22 21:13:51 +08:00
Fabiano Fidêncio
9311c0f12f Merge pull request #13384 from kata-containers/dependabot/cargo/serde_with-3.21.0
build(deps): bump serde_with from 2.3.3 to 3.21.0
2026-07-22 13:47:09 +02:00
Xuewei Niu
ba70aa89e7 runtime-rs: Pass the vhost-user-net device id to dragonball
Dragonball now identifies every network device by its iface_id and
refuses a device without one, so pass the endpoint's dev_id through
explicitly instead of leaving the field to its empty default. This
completes the change started two commits back: every network backend
hands dragonball a device name the runtime knows.

Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
2026-07-21 22:06:57 -05:00
Xuewei Niu
2491a39bca dragonball: Merge the three network device managers into one
virtio-net, vhost-net and vhost-user-net were spread across three
device managers with three config types, three error enums and three
insert paths, even though they are all network interfaces of the guest
behind one InsertNetworkDevice request. Merge them into a single
NetworkDeviceMgr with one info_list, dispatching on the Backend enum
per device, the way the block manager keeps its backends in one list
keyed by BlockDeviceType. The unified NetworkInterfaceConfig moves
from api/v1 into the manager, as the other managers define theirs,
and the per-backend config conversions disappear.

Device identity becomes the caller-supplied iface_id for every
backend, matching how every other device class is identified, instead
of vhost-user-net borrowing its socket path as its id. The socket path
becomes a conflict-checked resource alongside the tap name and the
guest MAC, so two devices claiming one vhost-user socket are refused
(DuplicatedUdsPath) rather than silently collapsing into one entry.

Behaviour changes, all deliberate:

- A device with an empty iface_id is refused (MissingIfaceId). The id
  is the interface name inside the guest, so an unnamed device would
  silently take the place of another unnamed one and the VM would boot
  with an interface missing. Callers that relied on inserting
  vhost-user-net devices without an id must now supply one.
- Hotplugging a device whose id is already in use is refused
  (DeviceIDAlreadyExist): the old config-update path would have left
  the already-attached device live on the bus with no handle left to
  remove it. Before boot, a repeated id still reconfigures the device
  as it does for every other device class.
- Teardown no longer stops at the first device that fails to be
  destroyed; the failure is logged and the remaining devices are still
  removed. This path newly matters because vhost-user-net devices now
  retain their device handle like the other backends do.

The unused open_tap helper (never called since the file was introduced)
and the NetworkDeviceInfo alias are dropped rather than carried over.

vhost-user-net devices inserted through runtime-rs receive their id in
the following commit; with only this commit they are refused for the
missing id.

Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
2026-07-21 22:06:57 -05:00
Xuewei Niu
fbae7a2d52 runtime-rs: Name vhost-user-net devices like the other backends
The virtio-net and vhost-net paths hand dragonball an iface_id taken
from the virt interface name, but the vhost-user-net endpoint left
dev_id unassigned, so the device carried no name of its own and was
identified by its socket path inside the hypervisor. Assign dev_id from
the endpoint's interface name so every network backend is identified
the same way by a name the runtime knows.

Also construct dragonball's vhost-user config with struct update syntax
so this commit builds both before and after dragonball's config gains
an iface_id field; the follow-up commit passes dev_id through
explicitly once that field exists.

Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
2026-07-21 09:27:42 -05:00
Steve Horsman
809ab7d90f Merge pull request #13422 from kata-containers/dependabot/pip/docs/pillow-12.3.0
build(deps): bump pillow from 12.2.0 to 12.3.0 in /docs
2026-07-21 13:51:49 +01:00
Fabiano Fidêncio
7302fddeea Merge pull request #13419 from fidencio/topic/build-remove-not-used-cross-compilation-paths
build: remove unused cross-compilation paths
2026-07-21 14:47:35 +02:00
dependabot[bot]
724d77d25a build(deps): bump pillow from 12.2.0 to 12.3.0 in /docs
Bumps [pillow](https://github.com/python-pillow/Pillow) from 12.2.0 to 12.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/12.2.0...12.3.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-version: 12.3.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-21 11:03:15 +00:00
Fabiano Fidêncio
59057cb2a6 docs: drop cross-build instructions for SE boot image
The SE VMs how-to documented building the s390x boot image on an x86_64
host via CROSS_BUILD=true TARGET_ARCH=s390x ARCH=s390x.

Cross builds are not exercised on our side and the supporting code has been
removed, so drop this instruction; the SE boot image is built on a native
s390x host.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
fdcfe6222f ci: drop cross-compilation from install_libseccomp.sh
When the requested ARCH differed from the host, install_libseccomp.sh
selected a <arch>-linux-gnu-gcc cross compiler and passed --host=<arch> to
configure to cross-build the static libseccomp.

This is not exercised on our side: libseccomp is always built for the host
arch. Build it natively without the cross CC or --host.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
89ba9cdeb0 kata-ctl: drop cross-rs cross-build tooling
kata-ctl shipped a Cross.toml and a "Cross-builds" README section
describing how to cross compile the tool for other architectures with
cross-rs (installing foreign-arch libssl via dpkg multiarch pre-build
hooks).

This is not exercised on our side: kata-ctl is built on native-arch
runners. Remove Cross.toml and the cross-build documentation.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
9a7d894cef osbuilder: drop cross-compilation rootfs/image support
Building a foreign-arch rootfs/image relied on CROSS_BUILD to enable docker
buildx/--platform emulation, a <arch>-linux-gnu-strip stripping tool, an
Ubuntu builder installing gcc-<arch>-linux-gnu + libc6-dev-<arch>-cross
(via the @ARCH@ template) and config.sh exporting a cross CC.

None of this is exercised on our side: rootfs and image are always built
on a native-arch runner. Remove the CROSS_BUILD/TARGET_ARCH/BUILDX/PLATFORM
plumbing, the cross toolchain/@ARCH@ substitution and the cross CC export;
the guest agent is stripped with the native `strip`.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
4d1e78da2f kernel: drop cross-compilation build support
The guest kernel build derived a CROSS_COMPILE=<arch>-linux-gnu- prefix
whenever the target arch differed from the host, the static-build wrapper
switched to a per-arch `-cross-build` image (with buildx/--platform for
s390x), and the builder image installed gcc-<arch>-linux-gnu /
binutils-<arch>-linux-gnu cross toolchains.

None of this is exercised on our side: the kernel is always built on a
native-arch runner. Remove the CROSS_COMPILE plumbing, the cross-build
image/buildx handling and the cross toolchain install.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
7925e678ba qemu: drop cross-compilation build support
Building QEMU for a foreign arch relied on configure-hypervisor.sh
emitting --cross-prefix, build-qemu.sh passing --cc/--cross-prefix for
s390x, and the builder image installing foreign-arch -dev packages
(via dpkg multiarch/DPKG_ARCH) plus a gcc-<arch>-linux-gnu cross toolchain.

None of this is exercised on our side: QEMU is always built on a
native-arch runner. Remove the cross-prefix logic, the s390x cross
configure branch, and the DPKG_ARCH/cross-gcc plumbing from the Dockerfile
and build-base-qemu.sh.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
7632ffd8a8 static-build: drop cross-build container handling
The shared lib.sh exported CROSS_BUILD/TARGET_ARCH/BUILDX/PLATFORM so the
per-component static-build scripts could switch to `-cross-build` builder
images, run `docker buildx build --platform=...` under QEMU emulation and,
for shim-v2, swap in the messense/rust-musl-cross image with a matching
cross CC.

These cross paths are not exercised on our side (all builds run on
native-arch runners), so remove them: builder images are now built with a
plain `docker build`, and shim-v2 builds runtime-rs natively without the
musl-cross image or CC override.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
211393547d kata-deploy: drop cross-build orchestration from local-build
The kata-deploy local-build pipeline auto-enabled a cross build whenever
the host arch differed from TARGET_ARCH, wiring up docker buildx, QEMU
binfmt emulation and an s390x cross toolchain (incl. building s390-tools
genprotimg with CROSS_COMPILE) in the builder image.

None of this is exercised on our side: every release/CI build runs on a
native-arch runner, so the cross paths are dead code. Remove the
CROSS_BUILD/TARGET_ARCH/BUILDX/PLATFORM/binfmt machinery and the s390x
cross toolchain from the builder image; the tarballs are always built for
the host arch now.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
2c45c7a4d1 utils.mk: drop cross-compilation Rust linker selection
The `HOST_ARCH != ARCH` branch in utils.mk existed solely to support
cross-compiling the Rust components (overriding the linker via `CC`).
Cross-compilation is not exercised on our side: all release/CI builds run
on native-arch runners, so this path is dead code. Remove it.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor <cursoragent@cursor.com>
2026-07-20 21:00:37 +02:00
Fabiano Fidêncio
4d7c668564 Merge pull request #13411 from fidencio/topic/extract-pcilibs-rs
libs: extract pcilibs into standalone pcilibs-rs crate
2026-07-20 19:10:36 +02:00
Fabiano Fidêncio
cf82bb35c8 Merge pull request #13396 from fidencio/release/4.0.0
release: Bump version to 4.0.0
4.0.0
2026-07-20 16:11:20 +02:00
Fabiano Fidêncio
bfd2589060 release: Bump version to 4.0.0
Bump VERSION and helm-charts versions.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
2026-07-20 14:16:41 +02:00
Fabiano Fidêncio
eae4398f88 cargo: correct rstest entry in Cargo.lock
Fix lockfile due to ab2e7f0c58 manual edit
and lack of CI for security fixes. :-/

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
2026-07-20 14:16:41 +02:00
Fabiano Fidêncio
4685200167 Merge commit from fork
runtimes: harden the config load
2026-07-20 14:03:57 +02:00
Fabiano Fidêncio
ab2e7f0c58 runtimes: reject unshipped KATA_CONF_FILE paths
Fail startup when KATA_CONF_FILE does not resolve to one of the shipped
default config files, preventing untrusted config path injection via
environment overrides.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
2026-07-20 13:36:43 +02:00
Fabiano Fidêncio
03cc670076 runtimes: remove config_path sandbox annotation override
Stop accepting io.katacontainers.config_path so config selection comes
only from shim options, KATA_CONF_FILE, and defaults.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
2026-07-20 13:36:43 +02:00
Fabiano Fidêncio
86e5531504 Merge pull request #13415 from Apokleos/disable-sb-bmnt
kata-types: disallow sandbox bind mounts from annotations
2026-07-20 13:36:06 +02:00
Alex Lyn
9566efd4bd kata-types: disallow sandbox bind mounts from annotations
The sandbox_bind_mounts option accepts host paths that runtime-rs
exposes to the guest shared filesystem. Runtime annotations are not
gated by the hypervisor annotation allowlist, allowing an untrusted
workload annotation to add arbitrary host paths to the sandbox bind
mount configuration.

Ignore KATA_ANNO_CFG_SANDBOX_BIND_MOUNTS when processing workload
annotations. Sandbox bind mounts remain available through the
operator-controlled TOML configuration, preserving the sandbox-level
host/guest sharing feature while removing the untrusted annotation
path.

Really appreciate it that Anthropic and Ada Logics report this issue.

Reported-by: Anthropic and Ada Logics
Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
2026-07-20 17:01:47 +08:00
Hyounggyu Choi
681c0ffc47 Merge pull request #13410 from fidencio/topic/runtime-rs-containerd-binary-logger-add-timeout-to-start-path
runtime-rs: avoid container start hang on binary loggers
2026-07-20 09:30:05 +02:00
Saul Paredes
5524f1f276 tests: k8s: verify the sandbox processes share the pod cgroup
Add an integration test for the runtime-rs fix that co-locates the shim,
the VMM and virtiofsd in the pod's kubepods cgroup under
sandbox_cgroup_only on cgroup v2. The regression it guards leaves the VMM
and virtiofsd in system.slice/containerd.service while only the shim
reaches kubepods.

Start a BestEffort Kata pod and, from the host, assert the VMM and
virtiofsd share the shim's cgroup and that it is under kubepods. The shim
is selected by the pod UID in its cgroup path, so a pod in another
namespace is not picked. Skips dragonball (in-process VMM).

Generated-By: GitHub Copilot (Claude)
Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
2026-07-19 12:58:45 -07:00
Fabiano Fidêncio
7e4af62eb5 Merge pull request #13363 from manuelh-dev/mahuber/nv-runtime-rs-erofs
nvidia/runtime-rs: use EROFS without virtio-fs
2026-07-19 17:21:58 +02:00
Fabiano Fidêncio
ce2c7d9d9d libs: extract pcilibs into standalone pcilibs-rs crate
Move PCI enumeration, VFIO helpers, and InfiniBand diagnostics out of
kata-sys-util into the external pcilibs-rs crate so they can be reused
independently of kata-containers.

Depend on pcilibs-rs 0.1.0 from crates.io.

Add pcilibs to the cspell dictionary for the new crate reference in
src/libs/README.md.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
2026-07-19 13:39:15 +02:00
Fabiano Fidêncio
f73ba838df runtime-rs: avoid container start hang on binary loggers
open() waits for the binary logger readiness handshake with an unbounded
async read(). If the logger never writes to fd 5 (or inherits a bad fd),
container start can hang indefinitely.

Let's add a timeout around the readiness read and fail the start path if
it expires (the child will be killed on drop due to kill_on_drop(true)).

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Suggested-by: CoPilot
2026-07-19 11:01:35 +02:00
Manuel Huber
7a409a1295 nvidia/runtime-rs: use EROFS without virtio-fs
Disable filesystem sharing for the non-confidential NVIDIA runtime-rs
handler and use the EROFS snapshotter as its Kubernetes image-layer
transport. This moves the runtime class toward a guest-owned storage
model instead of relying on virtio-fs for container image layers and
writable cache volumes.

Configure kata-deploy's NVIDIA GPU values to install EROFS and select
it for the qemu-nvidia-gpu-runtime-rs Kubernetes handler. Use
memory-backed writable layers and dm-verity for lower-layer integrity.

Adjust the NVIDIA GPU Kubernetes CI matrix so the non-confidential
runtime-rs job exercises EROFS, while the Go and TEE jobs keep their
existing snapshotter choices.

Keep the Docker smoke test path on virtio-fs. The EROFS setup is
targeted at the Kubernetes runtime-rs handler, where containerd can use
the EROFS snapshotter for image layers.

Adjust the runtime-rs NIM test selection and manifests closer to the
TEE case, where filesystem sharing is already disabled and cache
storage is guest-owned and ephemeral.

Signed-off-by: Manuel Huber <manuelh@nvidia.com>
Assisted-by: OpenAI Codex <codex@openai.com>
2026-07-19 09:12:45 +02:00
Manuel Huber
070387b2be nvidia/runtime-rs: use block-plain emptyDir
Set the non-confidential NVIDIA runtime-rs emptyDir mode to
block-plain through a dedicated Makefile default.

This prepares the runtime class for configurations where filesystem
sharing is disabled and emptyDir volumes need to be backed by
guest-mounted block devices instead of shared-fs.

Signed-off-by: Manuel Huber <manuelh@nvidia.com>
Assisted-by: OpenAI Codex <codex@openai.com>
2026-07-19 09:12:45 +02:00
Fabiano Fidêncio
07289ee084 Merge pull request #13351 from cayoub-oai/runtime-rs-binary-logger
runtime-rs: support containerd binary loggers
2026-07-19 09:11:14 +02:00
cayoub-oai
73808cd77b runtime-rs: support containerd binary loggers
Support containerd binary:// stdio URIs in runtime-rs by spawning the
logger with stdout, stderr, and readiness on file descriptors 3, 4, and 5.
Preserve URI arguments and container metadata, and stream output through
nonblocking pipes with backpressure.

Processes using a binary logger fall back from passfd to the existing agent
streams so the host shim can feed the logger. After EOF, allow the logger to
drain before using SIGTERM and SIGKILL as bounded fallbacks.

Fixes: #4391
Related: #4420
Signed-off-by: cayoub-oai <276123840+cayoub-oai@users.noreply.github.com>
Assisted-By: OpenAI Codex
2026-07-19 00:53:56 +02:00
Fabiano Fidêncio
66c4c0ba6c Merge pull request #13367 from fidencio/topic/clean-up-versions-yaml
versions: cleanup versions.yaml
2026-07-18 17:15:26 +02:00
Fabiano Fidêncio
0487987fa4 Merge pull request #13409 from kata-containers/mahuber/nv-runtime-rs-erofs-cpu
nvidia/runtime-rs: Switch to EROFS as the default snapshotter for the CPU runtime class
2026-07-18 17:15:04 +02:00
Fupan Li
7f94126f65 Merge pull request #13358 from LandonTClipp/hugepage-discovery
runtime: Dynamically discover hugepage size
2026-07-18 22:51:53 +08:00
Fabiano Fidêncio
fc81c79cab runtime-rs: do not require OVMF for qemu-nvidia-cpu-runtime-rs on arm64
Commit e8bb619b1b ("runtime: do not require OVMF for qemu-nvidia-cpu
on arm64") dropped the generic OVMF/AAVMF firmware inheritance for the
Go qemu-nvidia-cpu runtime, but assumed runtime-rs already did the right
thing by default. It didn't: the runtime-rs profile still pointed at the
generic @FIRMWAREPATH@ / @FIRMWAREVOLUMEPATH@ and still pulled in the
ovmf component on aarch64.

Mirror the fix on the runtime-rs side by introducing dedicated empty
FIRMWAREPATH_NV_CPU / FIRMWAREVOLUMEPATH_NV_CPU variables, wiring them
into the qemu-nvidia-cpu-runtime-rs configuration, and dropping ovmf
from its aarch64 shim components.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor with Claude Opus 4.8
2026-07-18 14:44:09 +02:00
Fabiano Fidêncio
271a797600 tests: run k8s-termination-log on the NVIDIA CPU runtime-rs handler
The termination-log tests exercise termination-message propagation over
the agent GetDiagnosticData RPC, which only matters when the host cannot
read guest files directly, i.e. on shared_fs=none configurations. They
previously gated on is_confidential_runtime_class and therefore skipped
on the NVIDIA CPU runtime-rs handler, which now also runs with
shared_fs=none.

Add an is_shared_fs_none_runtime_class helper (confidential runtime
classes plus qemu-nvidia-cpu-runtime-rs) and use it for the setup and
teardown gating so the tests run on the NVIDIA CPU runtime-rs handler as
well. The plain Go qemu-nvidia-cpu class still uses virtio-fs and is
intentionally excluded. Keep the "blocked by default CoCo policy"
assertion confidential-only, since non-confidential shared_fs=none
classes do not ship a default policy that denies the RPC.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor with Claude Opus 4.8
2026-07-18 14:44:09 +02:00
Fabiano Fidêncio
b6449fca2b nvidia/runtime-rs: default the NVIDIA CPU profile to runtime-rs
Make qemu-nvidia-cpu-runtime-rs the default shim on amd64 and arm64 for
the kata-deploy NVIDIA CPU profile, so installs from
try-kata-nvidia-cpu.values.yaml select the Rust runtime by default
instead of the Go qemu-nvidia-cpu shim.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Assisted-by: Cursor with Claude Opus 4.8
2026-07-18 14:44:09 +02:00