Skip to content

Conversation

@ludfjig
Copy link
Contributor

@ludfjig ludfjig commented Dec 9, 2025

On windows using hyperlight in multiple processes is not supported because CreateJobObjectA will fail due to using identical names. This PR fixes that. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createjobobjecta

The specific use case that inspired this pr was running multiple hyperlight tests at the same time

Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig added the kind/bugfix For PRs that fix bugs label Dec 9, 2025
@ludfjig ludfjig marked this pull request as ready for review December 9, 2025 21:59
@simongdavies
Copy link
Contributor

I've not looked inot it but I wonder if the way we handle the surrogate process binary will also cause problems?

@simongdavies
Copy link
Contributor

Fixes #319

@ludfjig ludfjig merged commit 33afe65 into hyperlight-dev:main Dec 10, 2025
43 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bugfix For PRs that fix bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate making it possible to run 2 host processes in parallel on Windows

3 participants