Skip to content

feat: Increase DeviceLimit for TDX and SEV-SNP to 256 and update test#22

Open
jimmychiuuuu wants to merge 1 commit into
mainfrom
update-device-limit
Open

feat: Increase DeviceLimit for TDX and SEV-SNP to 256 and update test#22
jimmychiuuuu wants to merge 1 commit into
mainfrom
update-device-limit

Conversation

@jimmychiuuuu
Copy link
Copy Markdown
Collaborator

@jimmychiuuuu jimmychiuuuu commented May 29, 2026

Summary

This PR increases the DeviceLimit for intel.com/tdx and amd.com/sev-snp from 1 to 256.

Motivation

The previous limit of 1 enforced node-level exclusivity, which blocked scheduling when multiple confidential workloads needed these devices on the same node. Since the Linux kernel supports concurrent access, we are aligning the limit with vTPM to support modern cloud-native patterns.

Changes

  • Updated DeviceLimit in main.go.
  • Updated unit tests in deviceplugin/ccdevice_test.go to validate the increased limits and ensure multiple device IDs are correctly allocated."

Test

Ran go test ./... and all tests passed.

@jimmychiuuuu jimmychiuuuu force-pushed the update-device-limit branch from 85163eb to fceb0e6 Compare May 29, 2026 06:15
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