-
Notifications
You must be signed in to change notification settings - Fork 93
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
Check that windows version is supported #110
Check that windows version is supported #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Might just want to rebase squash commits for related to formatting, clippy, and spelling issues.
Check for hypervisor presence is done in the hypervisor_handler module before trying to create the driver Signed-off-by: Simon Davies <[email protected]>
dc63dc6
to
a00b180
Compare
1ccdb4d
to
bcee12c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I am slightly confused. With the new dynamic loading of the function, do we support windows 10 or not? Looks like we return an error in uninitialized.rs if we are not win11, so what's the point of that?
On Windows hyperlight requires the API WHvMapGpaRange2 which only exists on Windows 11 and Windows Server 2022 (or later). (from the PR description) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Previously when hyperlight was loaded on older Windows versions the function |
Adds a check when creating a new uninitialisedsandbox to ensure that we are running on at least Windows 11 or Windows Server 2022 Signed-off-by: Simon Davies <[email protected]>
Resolve the WHvMapGpaRange2 function dynamically so that we can load on earlier versions of windows that are not supported Signed-off-by: Simon Davies <[email protected]>
…hypervisor handler thread returns an error. The hypervisor handler thread can return an error rather than send a message, in this case the error returned would be a timeout rather than the real error, this change ensures that we check for an error in the hypervisor handler thread when we time out and return that if it exists Signed-off-by: Simon Davies <[email protected]>
This change uses take_if method on Option which is stable since 1.80 Signed-off-by: Simon Davies <[email protected]>
8b6b25c
to
c3121ae
Compare
Adds checks to ensure that when running on Windows the version of Windows is supported.
On Windows hyperlight requires the API
WHvMapGpaRange2
which only exists on Windows 11 and Windows Server 2022 (or later).There are multiple commits in this PR each with their own description.
Fixes #76