Skip to content

Remove x64 exception handling code and support aarch64 - #562

Open
syntactically wants to merge 6 commits into
mainfrom
lm/aarch64
Open

syntactically wants to merge 6 commits into
mainfrom
lm/aarch64

Conversation

@syntactically

Copy link
Copy Markdown
Member

No description provided.

@syntactically syntactically added the kind/enhancement New feature or request label Oct 20, 2026
@syntactically
syntactically added this pull request to stack #563 October 20, 2026 00:42
@syntactically
syntactically force-pushed the lm/aarch64 branch 2 times, most recently from f1bc9ae to 3975edd Compare October 20, 2026 00:56
@syntactically
syntactically force-pushed the lm/aarch64 branch 2 times, most recently from 5a2b052 to a43136d Compare October 20, 2026 17:24
@syntactically
syntactically force-pushed the lm/aarch64 branch 2 times, most recently from 8c0eed1 to f3e17b7 Compare October 20, 2026 19:08
len: usize,
) -> i32 {
copy_va_mapping(image as *mut u8, len, addr, false);
copy_va_mapping(image as *mut u8, len, addr, false, true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it is right that this flipped due to the barrier tracker? Just calling out since it is flipped here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not sure what you meant here? If you meant the new parameter on copy_va_mapping, indeed it is needed because now an RO mapping might be the basis for a memory image and the wasmtime semantics require RO to be changed to RW in this case (whereas in the past the original image was always RW).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh, I read it as a change not a new parameter 🤦. We should use enums here to make it clearer the intent of false/true in the two different parameters and it would help avoid that type of misread too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed

Comment thread src/hyperlight_wasm_runtime/src/platform.rs
Comment thread src/hyperlight_wasm_runtime/src/platform.rs Outdated
Comment thread .github/workflows/dep_build_wasm_examples.yml Outdated
Comment thread src/hyperlight_wasm_runtime/src/component.rs
This requires changing the wasi-sdk builder container
definition/script a little bit to make sure it works on aarch64 as
well as x86_64.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
@syntactically
syntactically force-pushed the lm/aarch64 branch 5 times, most recently from 87e2264 to 8ebab69 Compare October 21, 2026 19:29
Base automatically changed from lm/hl-0.18.0 to main October 21, 2026 19:47
As of Hyperlight 0.18.0, all of the functionality we need is
supported(ish) with architecture-independent interfaces in core
Hyperlight. Remove the old architecture-specific code in favour of
those new interfaces.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
@syntactically
syntactically force-pushed the lm/aarch64 branch 2 times, most recently from a2933c5 to d2c6ee7 Compare October 22, 2026 11:04
As of Hyperlight 0.18.0, all of the functionality we need is
supported(ish) with architecture-independent interfaces in core
Hyperlight. Remove the old architecture-specific code in favour of
those new interfaces.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
Not all guests are x64 anymore.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>

@jsturtevant jsturtevant left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks like ci still needs some work but over all this LGTM

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

Labels

kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants