Skip to content
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

kata-agent: Add CDI support #9584

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zvonkok
Copy link
Contributor

@zvonkok zvonkok commented May 2, 2024

For proper device handling add CDI support

@zvonkok zvonkok marked this pull request as draft May 2, 2024 09:00
@zvonkok zvonkok self-assigned this May 2, 2024
@zvonkok zvonkok added the area/gpu Issues specific to GPU/PCIe label May 2, 2024
@katacontainersbot katacontainersbot added the size/medium Average sized task label May 2, 2024
return Ok(());
}

match tokio::process::Command::new("/usr/bin/cdi")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be replaced with proper Rust implementation of CDI. For now using a go binary to do the proper injection of devices. Until then this PR remains a draft.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Zvonko, does just execute cmd cdi raw_oci_config cdi_oci_config enough ? there's no such usage of cdi when I try to execute /usr/bin/cdi. Is it some specified version of cdi ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a stripped down version of cdi but we could use the official one.

For proper device handling add CDI support

Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
@zvonkok zvonkok added wip Work in Progress (PR incomplete - needs more work or rework) do-not-merge PR has problems or depends on another labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gpu Issues specific to GPU/PCIe do-not-merge PR has problems or depends on another size/medium Average sized task wip Work in Progress (PR incomplete - needs more work or rework)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants