Skip to content

feat(zone-tpu): add a TPU zone flavor with vfio-pci binding hooks - #280

Open
azenla wants to merge 1 commit into
mainfrom
azenla/feat/tpu-hooks
Open

azenla wants to merge 1 commit into
mainfrom
azenla/feat/tpu-hooks

Conversation

@azenla

@azenla azenla commented Oct 10, 2026

Copy link
Copy Markdown
Member

Add the zone-tpu variant, which states the VFIO PCI options the TPU runtime needs, and ships setup and hotplug hooks that bind any Google processing accelerator to vfio-pci and allow unsafe interrupts, which Xen PV guests need. The hooks use the native bind-driver and sysfs-module-parameters fields, so the addons carry no overlay or shell for them.

Split the nvidia section out of firmware.sh into firmware-nvidia.sh, add firmware-tpu.sh, and move the hook TOML from inline heredocs into real files under hooks/.

@github-actions github-actions Bot 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.

PR Review

Reviewed at 1ccfee7.

This check did not finish, so it has nothing to say about the diff. The run log has the reason.

Test Coverage

Reviewed at 1ccfee7.

This check did not finish, so it has nothing to say about the diff. The run log has the reason.

@azenla
azenla force-pushed the azenla/feat/tpu-hooks branch from 8fd80fd to 779c733 Compare October 10, 2026 14:52
Add the zone-tpu variant, which states the VFIO PCI options the TPU runtime
needs, and ships setup and hotplug hooks that bind any Google processing
accelerator to vfio-pci and allow unsafe interrupts, which Xen PV guests need.
The hooks use the native bind-driver and sysfs-module-parameters fields, so
the addons carry no overlay or shell for them.

Split the nvidia section out of firmware.sh into firmware-nvidia.sh, add
firmware-tpu.sh, and move the hook TOML from inline heredocs into real files
under hooks/.
@azenla
azenla force-pushed the azenla/feat/tpu-hooks branch from 779c733 to 1ccfee7 Compare October 10, 2026 17:06
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