Add support of Hyper-V PCIE Passthrough

I have tried, but seems without success, have no idea how pull right request.

Sorry for my boring, but what can i do, that CONFIG_PCI_HYPERV=y appear in latest LEDE x86_64 release?
Thank you.

From https://github.com/lede-project/source/pulls:

First time contributing to lede-project/source?

If you would like to submit code to this repository, consider opening a pull request. Learn more about pull requests from GitHub Help https://help.github.com/articles/about-pull-requests/

In addition to the Github Help, see also https://lede-project.org/submitting-patches#working_with_github

I am trying, but when i press "Create pull request" - it's reload page and nothing happens, my request is didn't showing.pull

maybe I'll do it, as I already have needs of testing 32bit target and hyperv is not fully supported

Thank you very much! Also be good to add it for x64?

https://github.com/lede-project/source/pull/1521

Thank you. I try to test on r5349-e3c55dbe30, Windows Server 2016 Hyper-V, but it seems that Hyper-V PCIE passthrough didn't work. Maybe i need something to configure in LEDE? Try in another Linux VM (CentOS 7.3) - all works good.

it need to be merged first, but you can build it yourself

Unfortunately, I do not have enough knowledge for this. I will wait when it merged. Do you know when it might be?

no, it could take some time, you could read how to make your own in about 15 min on wiki

an example for old version, just to see is not that hard

Thanks. I have to try build myself. Do i need CONFIG_PCI_HYPERV set in menuconfig or something like this?

search for

cat target/linux/x86/64/config-default | grep CONFIG_PCI_HYPERV
# CONFIG_PCI_HYPERV is not set

and change it to

CONFIG_PCI_HYPERV=y

before you start make

I have compiled and run image, wireless device now present in OS (lspci intel 7260 is listed), but i can not configure it (install firmware, kmod-iwlwifi, wireless-tools) but it's cannot seen by OS as wireless card.

maybe try to add

CONFIG_HOTPLUG_PCI=y
CONFIG_HOTPLUG_PCI_ACPI=y
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
# CONFIG_HOTPLUG_PCI_ACPI_IBM is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set
CONFIG_HOTPLUG_PCI_PCIE=y

and delete the whole linuxdir
rm -fr build_dir/target-x86_64_musl/linux-x86_64/
Microsoft is tagging this feature as beta

Now it's reboots on boot with kernel panic.
pcie
Maybe it's a beta, but i have successfully make PCIE passthrough work in CentOS and Ubuntu, wlan card (intel 7260) works a days without any problem. But i am very interesting to make it work in LEDE.

getting a same kernel panic with a qca9880 Is there anyone tried passing through PCI-E wireless cards in Hyper-V?

On all modern linux systems (latest versions of CentOS/Ubuntu/Debian) Hyper-V PCIE passthrough works without issues, but not in OpenWRT (LEDE etc).

can you try a make clean before make ?

Before every make i do make clean.