Skip to content

ipc: add SetupDevices RPC and Device messages for DRA/CDI passthrough - #38

Open
m-amin-sanati wants to merge 1 commit into
nestybox:masterfrom
m-amin-sanati:37-setupdevices-rpc
Open

ipc: add SetupDevices RPC and Device messages for DRA/CDI passthrough#38
m-amin-sanati wants to merge 1 commit into
nestybox:masterfrom
m-amin-sanati:37-setupdevices-rpc

Conversation

@m-amin-sanati

Copy link
Copy Markdown

Adds the sysbox-ipc side of the MIG/DRA/CDI GPU passthrough feature.

Changes:

  • New SetupDevices gRPC RPC in the sysbox-mgr IPC proto.
  • New Device / request / response messages carrying the device set sysbox-runc must set up for a container.
  • Wired through grpcServer.go (the ServerCallbacks field + handler) and grpcClient.go (client wrapper).
  • Regenerated sysboxMgrProtobuf.pb.go is gitignored and rebuilt by make.

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:

  • nestybox/sysbox-mgr PR (#83)
  • nestybox/sysbox-runc PR (#120)

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>
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.

SetupDevices RPC and Device messages for DRA/CDI GPU passthrough

1 participant