Skip to content

Conversation

@danbugs
Copy link
Contributor

@danbugs danbugs commented May 1, 2025

This PR is the start of an effort to break down #297 into more digestible pieces.

In here, I changed the base address from our arbitrary 0x200_000 value start to 0x0, which is needed for custom guests (e.g., Nanvix) to execute properly. Aside from just changing the value, I also had to modify our get_address macro and the PT setup–see efecff4.

In addition, I also committed two small convenience things: (1) added the .gdbinit to our .gitignore, and (2) added a new Justfile recipe to more easily run a CI-like test suite locally.

@danbugs danbugs added the kind/refactor For PRs that restructure or remove code without adding new functionality. label May 1, 2025
danbugs added 3 commits May 1, 2025 15:40
- changed our get_address macro to properly execute when in process,
- fixed the PT setup for new base address,
- removed superfluous test (BASE_ADDRESS - 1 causes an arithmetic overflow, which
is caught at compile time), and
- updated our paging documentation.

Signed-off-by: danbugs <[email protected]>
This recipe runs tests 'like' CI w/ various combinations of
features and so on.

Signed-off-by: danbugs <[email protected]>
@danbugs danbugs force-pushed the change-base-address branch from eae41d7 to b3edc16 Compare May 1, 2025 15:41
@danbugs danbugs merged commit b3edc16 into hyperlight-dev:main May 1, 2025
27 checks passed
@danbugs danbugs deleted the change-base-address branch June 5, 2025 17:39
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