-
Notifications
You must be signed in to change notification settings - Fork 429
Disable nvsandboxutils by default #1419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This change disables the use of nvsandboxuitls for CDI spec generation by default. This prevents issues with specific (end-of-life) driver versions where consecutive calls would cause a cgo segmentation violation that could not be recovered from. The EnableNvsandboxutils feature flag can be specified when generating CDI specs (or instantiating the nvcdi API) to explicitly opt-in to using the nvsandboxutils library. Signed-off-by: Evan Lezar <elezar@nvidia.com>
|
/cherry-pick release-1.18 |
This change allows users the posibility to explicitly specify feature flags for using the `jit-cdi` mode. This allows, for example, for users to opt-in to use nvsandboxutils in the default mode in addition to when generating CDI specs explicitly. Signed-off-by: Evan Lezar <elezar@nvidia.com>
b025a99 to
4ea22c5
Compare
| // FeatureDisableNvsandboxUtils disables the use of nvsandboxutils when | ||
| // querying devices. | ||
| // | ||
| // Deprecated: nvsandboxutils is now disabled by default. To opt-in use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a policy on how long to keep a deprecated feature before total removal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No we don't.
For this feature specifically, I know that @jgehrcke mentioned using this while working on the dynamic MIG for DRA.
This change switches to making
nvsandboxutilsopt-in when generating CDI specs. Furthermore, and explicit config option is provided to allow nvcdi features to be specified when using the (now default)jit-cdimode.Fixes #1398
These changes will also need to be pulled in to the device plugin.
To opt-in to this feature for the
jit-cdimode, run:To opt-in for
nvidia-ctk cdi generaterun:To opt-in for the
nvidia-cdi-refresh.serviceadd:to
/etc/nvidia-container-toolkit/nvidia-cdi-refresh.env.