[Hyper-V] PCI Passthrough prerequisites
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Tim Gardner | ||
Xenial |
Fix Released
|
Undecided
|
Tim Gardner |
Bug Description
Jake Oshins (Microsoft) has submitted upstream the PCI Passthrough feature, and while it is not yet accepted upstream (because of the effect on multiple trees and affects PCI), Microsoft would like Canonical to consider its inclusion in Ubuntu 16.04 and beyond. The rounds of feedback on the patches are winding down, so it is a good time to consider them.
All of the submitted files are in the attached thread, but not all are committed to Linus's tree as of 4.5-rc1.
This feature is needed for supporting SR-IOV and GPU passthrough on Hyper-V.
The 10th iteration of the upstream submission is available on lkml:
https:/
From jakeo@microsof ...
Subject [PATCH v10 0/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs
Date Thu, 10 Dec 2015 17:52:56 +0000
From: Jake Oshins <email address hidden>
This version of the patch series removes warning when compiling x86
32-bit while still making it build cleanly for x64.
First, export functions that allow correlating Hyper-V virtual processors
and Linux cpus, along with the means for invoking a hypercall that targets
interrupts at chosen vectors on specific cpus.
Second, mark various parts of IRQ domain related code as exported, so that
this PCI front-end can implement an IRQ domain as part of a module. (The
alternative would be to pull all tyhis into the kernel, which would pull
in a lot of other Hyper-V related code, as this IRQ domain depends on
vmbus.ko.)
Third, modify PCI so that new root PCI buses can be marked with an associated
fwnode_handle, and so that root PCI buses can look up their associated IRQ
domain by that handle.
Fourth, introduce a new driver, hv_pcifront, which exposes root PCI buses in
a Hyper-V VM. These root PCI buses expose real PCIe device, or PCI Virtual
Functions.
Jake Oshins (7):
drivers:hv: Export a function that maps Linux CPU num onto Hyper-V
proc num
drivers:hv: Export hv_do_hypercall()
PCI: Make it possible to implement a PCI MSI IRQ Domain in a module.
PCI: Add fwnode_handle to pci_sysdata
PCI: irqdomain: Look up IRQ domain by fwnode_handle
drivers:hv: Define the channel type of Hyper-V PCI Express
pass-through
PCI: hv: New paravirtual PCI front-end for Hyper-V VMs
MAINTAINERS | 1 +
arch/x86/
arch/x86/
arch/x86/
arch/x86/
drivers/hv/hv.c | 20 +-
drivers/
drivers/
drivers/
drivers/
drivers/
drivers/pci/msi.c | 4 +
drivers/
include/
include/
kernel/irq/chip.c | 1 +
kernel/
17 files changed, 2356 insertions(+), 14 deletions(-)
create mode 100644 drivers/
Accepted commits so far in 4.5-rc1:
https:/
https:/
https:/
https:/
https:/
https:/
Related branches
summary: |
- [Hyper-V] PCI Passthrough + [Hyper-V] PCI Passthrough prerequisites |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1541120
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.