Skip to content

IPC for xal extent tree#65

Open
NaddiNadja wants to merge 15 commits into
mainfrom
xal-shm
Open

IPC for xal extent tree#65
NaddiNadja wants to merge 15 commits into
mainfrom
xal-shm

Conversation

@NaddiNadja
Copy link
Copy Markdown
Contributor

A larger PR with some minor fixes here and there, and then the full functionality for sharing the xal pools with the client. It depends on some of the functionalities from this PR in xal: xnvme/xal#28

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
There are informations on the homid struct that can be necessary to know
from the threaded workers that handle the requests from clients. The
homid_ipc_accept() function's argument is changed to be the whole homid
struct instead of just the connection struct, such that this can be
passed on to the worker arguments.

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
@NaddiNadja NaddiNadja requested review from safl and siu-jung May 12, 2026 10:19
Copy link
Copy Markdown
Member

@safl safl left a comment

Choose a reason for hiding this comment

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

Does this replace #35?
Should we give homi a repos of its own? E.g. xnvme/homi?

@NaddiNadja
Copy link
Copy Markdown
Contributor Author

Does this replace #35?

hehe yes, I will close that one

Should we give homi a repos of its own? E.g. xnvme/homi?

Yes, that would probably be a good idea

@NaddiNadja NaddiNadja mentioned this pull request May 12, 2026
Copy link
Copy Markdown
Collaborator

@siu-jung siu-jung left a comment

Choose a reason for hiding this comment

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

lgtm! Nice work :)

Comment thread homi/src/homic.c
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there an advantage to reconnecting to the socket at every request vs. keeping it open?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not really, but the problem was that it wasn't being kept open, so if I did two different calls, it failed the second one due to the socket having been closed for some reason

Copy link
Copy Markdown
Contributor

@karlowich karlowich left a comment

Choose a reason for hiding this comment

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

Very nice!
Just a few nitpicks

Comment thread homi/include/homi_proto.h Outdated
Comment thread homi/src/homic.c Outdated
Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
By using the xal enums, we can simplify the parsing of the given config
file.

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
This allows clients to know whether or not they can read from the extent
tree in the shared memory.

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
It was not intuitive, from the knowledge of other projects, that running
"make" would also start the service. This has ben removed from the
default, and config/build has been split in two commands.

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
This allows both client and daemon side code to use this constant

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
Not added directly to the white paper, but it's referenced there.

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
The HOMI implementation is already eplained, but a couple of sentences
about the shared memory and IPC is added here.

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
@NaddiNadja
Copy link
Copy Markdown
Contributor Author

@karlowich I've addressed your comments in the last commit - and also added two commits for docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants