Skip to content

Removing HostFunctionDefinitions region #453

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

Merged
merged 2 commits into from
May 2, 2025

Conversation

danbugs
Copy link
Contributor

@danbugs danbugs commented May 2, 2025

We only used the HostFunctionDefinitions region to validate that a host function exists before calling it. But, if the host function doesn't exist, we'll just exit anyway, so that utility is questionable. Also, with the removal of the region, because we no longer need to serialize the host_function_* structures, I updated our Flatbuffer schema.

Note: Just like #451 , this PR is also part of the effort of breaking #297 into more digestible bits.

@danbugs danbugs added the kind/refactor For PRs that restructure or remove code without adding new functionality. label May 2, 2025
@danbugs danbugs requested a review from ludfjig May 2, 2025 00:14
ludfjig
ludfjig previously approved these changes May 2, 2025
Copy link
Contributor

@ludfjig ludfjig left a comment

Choose a reason for hiding this comment

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

lgtm with some questions

danbugs added 2 commits May 2, 2025 18:12
…nDefinitions memory region

We only used the HostFunctionDefinitions region to validate that a host function exists before calling it.
But, if the host function doesn't exist, we'll just exit anyway, so that utility is questionable.

Signed-off-by: danbugs <[email protected]>
Because we no longer need to serialize those structures, I updated our flatbuffer schema.

Signed-off-by: danbugs <[email protected]>
@danbugs danbugs force-pushed the remove-host-fxn-def-region branch from 136c908 to af6c1a9 Compare May 2, 2025 18:24
Copy link
Contributor

@ludfjig ludfjig left a comment

Choose a reason for hiding this comment

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

LGTM! Feel free to ignore nit

@danbugs danbugs merged commit af6c1a9 into hyperlight-dev:main May 2, 2025
32 of 49 checks passed
@danbugs danbugs deleted the remove-host-fxn-def-region branch May 2, 2025 19:20
@danbugs danbugs mentioned this pull request May 2, 2025
danbugs added a commit to danbugs/hyperlight that referenced this pull request May 6, 2025
Removed cfg options that became unused after PRs hyperlight-dev#451 , hyperlight-dev#453 , and hyperlight-dev#457 merged.

Signed-off-by: danbugs <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/refactor For PRs that restructure or remove code without adding new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants