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

Restructure CDI use with plugins #1810

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

tkatila
Copy link
Contributor

@tkatila tkatila commented Aug 19, 2024

Restructure CDI use with plugins. Allow passing the whole CDI spec from plugin to server.

Copy link
Contributor

@eero-t eero-t left a comment

Choose a reason for hiding this comment

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

How moving CDI spec generation (from generic looking deviceplugin/server.go) to fpga_plugin.go, makes CDI use more generic?

cmd/fpga_plugin/dfl_test.go Outdated Show resolved Hide resolved
@mythi
Copy link
Contributor

mythi commented Aug 20, 2024

How moving CDI spec generation (from generic looking deviceplugin/server.go) to fpga_plugin.go, makes CDI use more generic?

It allows the plugins (or their initcontainers) to generate the full spec rather than being limited to a subset (hooks) of the functionality.

@tkatila tkatila force-pushed the cdi-make-more-generic branch 2 times, most recently from 8ee3530 to 7d333b7 Compare August 20, 2024 08:41
@tkatila tkatila changed the title Make CDI use more generic Restructure CDI use with plugins Aug 20, 2024
@tkatila tkatila marked this pull request as ready for review August 20, 2024 11:00
.golangci.yml Outdated Show resolved Hide resolved
@tkatila tkatila force-pushed the cdi-make-more-generic branch 2 times, most recently from 975f54d to 8625c5a Compare August 22, 2024 08:02
@tkatila tkatila force-pushed the cdi-make-more-generic branch 2 times, most recently from 9ff8504 to f950803 Compare August 27, 2024 07:15
@tkatila tkatila force-pushed the cdi-make-more-generic branch 8 times, most recently from 04c8549 to 51d464b Compare August 30, 2024 12:31
@tkatila
Copy link
Contributor Author

tkatila commented Aug 30, 2024

@bart0sh please review again

Copy link
Contributor

@mythi mythi left a comment

Choose a reason for hiding this comment

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

LGTM

cmd/fpga_plugin/opae_test.go Outdated Show resolved Hide resolved
pkg/deviceplugin/api.go Outdated Show resolved Hide resolved
Pass the whole cdi.spec structure to DeviceInfo and use
cdiCache for interacting with the CDI files on the host.

Signed-off-by: Tuomas Katila <[email protected]>
@tkatila tkatila force-pushed the cdi-make-more-generic branch from 51d464b to c3a01b9 Compare September 4, 2024 10:56
Copy link
Member

@bart0sh bart0sh left a comment

Choose a reason for hiding this comment

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

/lgtm

@mythi mythi merged commit be10a8d into intel:main Sep 4, 2024
73 checks passed
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.

4 participants