-
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
Add hv headers directly in the repo #165
Conversation
Could you pleas elaborate more details of the purpose?
|
So it doesn't have to live in kernel uapi, with all the baggage that carries.
Yes, although the copies need not contain all the same definitions; the interfaces we use in the kernel are not exactly the same as those we need in userspace.
Ideally these hypervisor interfaces don't need to change - they are backward compatible. Adding new things is easy; just add the definitions.
Any userspace library using our interface will need to know how to use the passthru interfaces. |
c7a6534
to
9df6597
Compare
Could you please look into the clippy error? |
9df6597
to
5a98d60
Compare
I guess it is fixed now. The Cloud Hypervisor compilation error is due to some names that changed in the 6.6 version of mshv.h (VFIO_GROUP -> VFIO_FILE) |
LGTM |
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.
The CI failure seems to be expected.
6f1bdea
to
c2b62b9
Compare
The kernel versions of these files will no longer exist in uapi, because the hypervisor definitions required by userspace are mostly disjoint from those required by the kernel. Add files adapted from the hypervisor headers, which contain only the definitions required by the bindings. Any additional hypervisor definitions userspace needs can be added directly to these new files. Signed-off-by: Nuno Das Neves <[email protected]>
Signed-off-by: Nuno Das Neves <[email protected]>
MSHV_DEV_VFIO_GROUP-prefixed names have changed to MSHV_DEV_VFIO_FILE in the newly generated bindings. The values remain the same. Signed-off-by: Nuno Das Neves <[email protected]>
Signed-off-by: Nuno Das Neves <[email protected]>
Signed-off-by: Nuno Das Neves <[email protected]>
c2b62b9
to
b515b6c
Compare
What's wrong with Quality (clippy, rustfmt) ? @NunoDasNeves |
I don't know! |
@russell-islam I found the quality check in "Actions" here: https://github.com/rust-vmm/mshv/actions/runs/11597890716 |
Summary of the PR
The hv headers are leaving the kernel uapi directory.
The goal is to only use these for 'passthrough' parts of the interface - i.e. the generic hypercall IOCTL and run vp IOCTL.