Skip to content

[test do not merge] snapshot golden tests#1446

Draft
ludfjig wants to merge 2 commits into
hyperlight-dev:mainfrom
ludfjig:snapshot-golden-tests
Draft

[test do not merge] snapshot golden tests#1446
ludfjig wants to merge 2 commits into
hyperlight-dev:mainfrom
ludfjig:snapshot-golden-tests

Conversation

@ludfjig

@ludfjig ludfjig commented May 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@ludfjig ludfjig added regen-goldens Regenerate snapshot golden fixtures and removed regen-goldens Regenerate snapshot golden fixtures labels May 8, 2026
@ludfjig ludfjig force-pushed the snapshot-golden-tests branch 2 times, most recently from db6f7fb to b5a0b52 Compare June 8, 2026 23:34
@ludfjig ludfjig force-pushed the snapshot-golden-tests branch 3 times, most recently from 9e44b28 to faa02a8 Compare June 24, 2026 02:00
A guest exception handler runs on the IST1 stack. If the handler writes
a copy-on-write page, the first write faults. The page fault also uses
IST1, so the CPU resets RSP to the top of IST1 and writes the fault
frame over the live handler frame. The handler returns to a bad address
and the guest aborts.

The test exception handler increments a counter that starts on a
copy-on-write page. Write the counter once in install_handler so its
page copies into scratch before the handler runs. The handler then
increments a writable page and does not fault.

Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig force-pushed the snapshot-golden-tests branch 2 times, most recently from e8bcea9 to 0115ba2 Compare June 24, 2026 19:22
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig added the kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. label Jun 24, 2026
@ludfjig ludfjig force-pushed the snapshot-golden-tests branch from 0115ba2 to 1875f33 Compare June 24, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. regen-goldens Regenerate snapshot golden fixtures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant