Add fabric manager configuration support #2045
Draft
+851
−254
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR enables Fabric Manager configuration for
vm-passthroughworkloads using Shared NVSwitch virtualization mode.It enables users to configure Fabric Manager modes (i.e.
FABRIC_MODE=[0,1,2],0- full-passthrough,1- shared NVSwitch,2- vGPU) through theClusterPolicyCRD, providing better support for NVIDIA multi-GPU systems in virtualized environments.In the FM shared NVSwitch virtualization model the NVIDIA driver is used for the NVSwitch devices, while the GPU devices are bound to the
vfio-pcidriver. The goal is for the GPU devices to be passed-through to kubevirt VMs, while the respective fabric is managed on the host.Changes
FabricManagerSpecto theClusterPolicyCRD with support for two modes:full-passthrough(FABRIC_MODE=0) - default mode.shared-nvswitch(FABRIC_MODE=1) - shared NVSwitch virtualization mode.vm-passthroughwith FM shared NVSwitch mode.vm-passthroughand FM shared NVSwitch mode case.vm-passthroughwith shared NVSwitch mode.vfio-manage unbind --allwhen FM shared NVSwitch mode.Checklist
make lint)make validate-generated-assets)make validate-modules)Testing
TBD