rust-vmm / mshv

Crates for Microsoft Hypervisor ioctls and bindings
Apache License 2.0
29 stars 12 forks source link

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

Open MouriNaruto opened 11 months ago

MouriNaruto commented 11 months ago

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

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 commented 11 months ago

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 commented 11 months ago

@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