-
Notifications
You must be signed in to change notification settings - Fork 13
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
Nudasnev/shim get set vp state #134
Conversation
fd00b3d
to
22f51ed
Compare
Support BIT() macros containing variables/other defines in LARGE_SNAKE_CASE. Now a constant for HV_HYP_PAGE_SIZE is generated instead of being ignored. Signed-off-by: Nuno Das Neves <[email protected]>
Signed-off-by: Nuno Das Neves <[email protected]>
22f51ed
to
bb03b55
Compare
I have been discussing this changes with @NunoDasNeves and we agreed on this. This PR looks good to me. @jinankjain @liuw Could you please look into this? |
I don't have a strong opinion on this. If the three of you agree on a way forward I'm fine with this PR. |
b43ec6c
to
666c5fe
Compare
@NunoDasNeves Please add missing Signed-off-by |
Signed-off-by: Nuno Das Neves <[email protected]>
Rework XSave and LapicState, replace their From<T> implementations to convert to/from Buffer with TryFrom<T>. Replace existing MSHV_GET/SET_VP_STATE implementations with the new kernel interface. Signed-off-by: Nuno Das Neves <[email protected]>
666c5fe
to
7e7820a
Compare
Summary of the PR
Make the get/set vp state IOCTLs simpler and easier to use. Remove any interpretation of the XSAVE state, as it is not needed for save/restore.
Replace hv_ definitions in the interface with mshv_ definitions, so the kernel doesn't need to export these.
Use a plain buffer for the data to simplify things.
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.