Skip to content

vGPU! - #66

Draft
amoghmunikote wants to merge 6 commits into
masterfrom
vGPU-and-others
Draft

amoghmunikote wants to merge 6 commits into
masterfrom
vGPU-and-others

Conversation

@amoghmunikote

Copy link
Copy Markdown
Owner

No description provided.

amoghmunikote and others added 6 commits October 26, 2026 12:56
Opt-in with install.sh --vgpu=<NVIDIA-Linux-x86_64-<ver>-vgpu-kvm.run>: builds
nvidia.ko as a vGPU KVM host with nvidia-vgpu-vfio from that package, runs the
GA100 vGPU plugin on the CPU, and installs the vGPU manager userspace.
tools/vgpu.sh exposes SR-IOV and manages the VFs and services.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gXUgxCHKjz3btHUjWeJbd
Remove tools/vgpu.sh and tools/vgpu-config.py, the SR-IOV host runtime
management (install/enable/unhide/start/stop and the vgpuConfig.xml
profile generator). These now live in the cmptools repo. install.sh no
longer invokes the removed installer; --vgpu still builds the modules as
a vGPU host via build.sh. The driver-build support (driver/build.sh and
driver/patches/vgpu) is unchanged, and remove.sh keeps the runtime
teardown since it is the only cleanup for those artifacts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gXUgxCHKjz3btHUjWeJbd
Remove tools/passthrough.sh, the operator CLI for the vfio-pci handoff
(status/prepare/restore). It now lives in the cmptools repo. The install
path is unchanged: passthrough-setup.sh still builds cmp_no_bus_reset.ko
and installs the passthrough-arm and gsp-restore helpers, the boot
service, and the udev rule. read-constants.py now checks the module is
referenced in passthrough-arm.sh, and gsp-restore.py points its restore
hint at the cmptools passthrough tool.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gXUgxCHKjz3btHUjWeJbd
Remove verify.sh (whole-GPU memory-unlock verification) and the verify
and status actions of tools/service.sh (negotiated Gen2 check + service
state). These read-only checks now live in the cmptools status tool.

service.sh keeps install and remove, which arm and tear down the
early-boot gen2.service and are part of cmpunlocker's install. install.sh
points its post-install verification steps at ./tools.sh status verify.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gXUgxCHKjz3btHUjWeJbd
Remove tools/retrain.sh, the one-shot manual PCIe Gen2 retrain. It was an
orphan (nothing installs or runs it) and now lives, generalized off the
hardcoded BDFs, in the cmptools retrain tool. The early-boot retrain
mechanism (hammer.sh + gen2.service via service.sh install) is unchanged,
as is the legacy /usr/local/sbin/retrain.sh cleanup in install/remove.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gXUgxCHKjz3btHUjWeJbd
Move the three vGPU patches out of driver/patches/vgpu/ into
driver/patches/ and into the single PATCH_ORDER list, after
bar1-resize-unlock.patch (vgpu-kvm-build.patch edits code that patch
adds). Drop the separate VGPU_PATCH_ORDER array and the patches/vgpu
handling in build.sh and the tests.

vGPU stays optional: the apply loop skips the vgpu-* patches unless a
--vgpu package is given, since vgpu-kvm-build.patch needs the vGPU host
sources extracted from that .run. A normal unlock-only build is
unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gXUgxCHKjz3btHUjWeJbd
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.

1 participant