Skip to content
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

Add Windows Hypervisor Platform APIs #977

Open
wants to merge 8 commits into
base: 0.3
Choose a base branch
from

Conversation

gjz010
Copy link

@gjz010 gjz010 commented Jan 27, 2021

It seems that the previous RFC for adding WHP support (#767) has been inactive for a while. So I decided to start a new version.

  • The WHV_UINT128 issue: I tried to avoid the unstable ABI problem by not using u128, but defining a new struct which has the same alignment requirement with u128. Also since #[repr(align(16))] requires Rust 1.25+, an automatic check is added in build.rs so that WinHv is disabled in "everything" on old versions while an explicit turn-on will emit an error.
  • Testcases: I've added basic testcases for structs and enums in WinHvPlatformDefs.h.
  • Bumped to Windows SDK 10.0.19041.0.
  • Added winerrors.

Further real testcases are still required.

@gjz010 gjz010 marked this pull request as ready for review January 28, 2021 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant