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

Some files seem missing when trying to use scripts/generate_binding.py #117

Open
MouriNaruto opened this issue Oct 6, 2023 · 2 comments

Comments

@MouriNaruto
Copy link

In the latest scripts/generate_binding.py, we know we need the following files in Linux kernel source code to generate the bindings.

  • include/hyperv/hvgdk_mini.h
  • include/hyperv/hvgdk.h
  • include/hyperv/hvhdk_mini.h
  • include/hyperv/hvhdk.h
  • include/linux/mshv.h

I am confused because I cannot find these files in the latest mainline Linux kernel source code. So, I need some help.

Kenji Mouri

@liuw
Copy link
Member

liuw commented Oct 9, 2023

Please see here: https://lore.kernel.org/linux-hyperv/1696010501-24584-1-git-send-email-nunodasneves@linux.microsoft.com/T/#t

We're still in the process of usptreaming our code.

@MouriNaruto
Copy link
Author

MouriNaruto commented Oct 9, 2023

@liuw

Thanks, I have found them in the link you provided successfully. The original hvgdk and hvhdk headers in the link is MIT licensed. I am really excited about that because I am planning a book which talks about how to develop UEFI applications and Unikernel style OS for Hyper-V Gen 2 VMs.

But I also hope standalone version of hvgdk and hvhdk headers can be existed. (For example, use something portable headers like stdint.h to define integers, and keep the original Hyper-V header coding style instead of Linux kernel coding style.) I think it will help more Hyper-V users.

Kenji Mouri

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

No branches or pull requests

2 participants