ipc: add SetupDevices RPC and Device messages for DRA/CDI passthrough - #38
Open
m-amin-sanati wants to merge 1 commit into
Open
ipc: add SetupDevices RPC and Device messages for DRA/CDI passthrough#38m-amin-sanati wants to merge 1 commit into
m-amin-sanati wants to merge 1 commit into
Conversation
Adds DeviceSetupReq/Device/DeviceSetupResp to the sysbox-mgr gRPC proto and plumbs the SetupDevices RPC through grpcServer.go (ServerCallbacks field + handler) and grpcClient.go (client wrapper). Used by Phase 1b deviceMgr to reconcile CDI/DRA device host paths against the kernel driver root. Generated sysboxMgrProtobuf.pb.go is gitignored and rebuilt by make. Signed-off-by: Amin San'ati <amin.sanati32@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the sysbox-ipc side of the MIG/DRA/CDI GPU passthrough feature.
Changes:
SetupDevicesgRPC RPC in the sysbox-mgr IPC proto.Device/ request / response messages carrying the device set sysbox-runc must set up for a container.grpcServer.go(theServerCallbacksfield + handler) andgrpcClient.go(client wrapper).sysboxMgrProtobuf.pb.gois gitignored and rebuilt bymake.This lets sysbox-mgr tell sysbox-runc which host device nodes (e.g. NVIDIA MIG capability nodes) to set up inside a system container for GPU passthrough.
Closes #37
This is part of a 3-repo feature: