Add support for OCP protocol - #20
Draft
n-ramacciotti wants to merge 4 commits into
Draft
Conversation
n-ramacciotti
force-pushed
the
ocp_module
branch
from
June 24, 2026 11:15
9beee2d to
0e23e44
Compare
Author
|
v2:
|
n-ramacciotti
force-pushed
the
ocp_module
branch
8 times, most recently
from
July 8, 2026 11:48
7c5394b to
1b7a412
Compare
n-ramacciotti
force-pushed
the
ocp_module
branch
from
July 22, 2026 13:17
1b7a412 to
b34b176
Compare
Author
|
v3:
TODO:
|
Add and export some utitily functions to interact with svsm as defined in the ocp draft protocol. Signed-off-by: Nicola Ramacciotti <niko.ramak@gmail.com>
Add a minimal driver for svsm ocp protocol. Signed-off-by: Nicola Ramacciotti <niko.ramak@gmail.com>
Add `ocp-svsm` device that can be handled by the platform driver added in the previous commits in `drivers/char/ocp_svsm.c` TODO: Register the platform device only when SVSM is available and it supports OCP calls. Signed-off-by: Nicola Ramacciotti <niko.ramak@gmail.com>
n-ramacciotti
force-pushed
the
ocp_module
branch
from
July 24, 2026 10:50
b34b176 to
84b0b7f
Compare
Author
|
v4:
Tested locally (without SNP, but with fake replies and a very basic userspace application) TODO:
|
n-ramacciotti
force-pushed
the
ocp_module
branch
4 times, most recently
from
July 28, 2026 10:03
9b25fc1 to
8326c56
Compare
Author
|
v5:
Other todo in #20 (comment) are open |
n-ramacciotti
force-pushed
the
ocp_module
branch
2 times, most recently
from
July 29, 2026 10:20
f0a50c2 to
f1aa9c7
Compare
todo Signed-off-by: Nicola Ramacciotti <niko.ramak@gmail.com>
n-ramacciotti
force-pushed
the
ocp_module
branch
from
July 29, 2026 11:35
f1aa9c7 to
0c38f34
Compare
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.
RFC PR for observability and configuration protocol
This is the linux-side handler.
It is still a work in progress.
For now it is only used to testSVSM_OCP_LISTrequest.It contains the platform device and driver registration + all the ocp calls implementation.
This contains a [test] commit with a module that can be loaded and will do a single call to SVSM_OCP_LIST during initialization. The parameter of this call can be changed based on a configuration parameter that can be specified when inserting the module. This can be inserted and removed multiple times.see PR coconut-svsm/svsm#1138