[Hyper-V] Missing PCI patches breaking SR-IOV hot remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Tim Gardner | ||
Zesty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Looks like the rebase work missed some prerequisite patches in drivers/
(Needed for SR-IOV in Azure on lts-xenial, HWE, and custom)
commit 0de8ce3ee8e38cc
Author: Long Li <email address hidden>
Date: Tue Nov 8 14:04:38 2016 -0800
PCI: hv: Allocate physically contiguous hypercall params buffer
hv_
contiguous buffer. A buffer allocated on the stack may not work if
CONFIG_
Use kmalloc() to allocate this buffer.
commit 542ccf4551fa019
Author: Tobias Klauser <email address hidden>
Date: Mon Oct 31 12:04:09 2016 +0100
PCI: hv: Make unnecessarily global IRQ masking functions static
Make hv_irq_mask() and hv_irq_unmask() static as they are only used in
pci-hyperv.c
This fixes a sparse warning.
commit e74d2ebdda33b3b
Author: Dexuan Cui <email address hidden>
Date: Thu Nov 10 07:19:52 2016 +0000
PCI: hv: Delete the device earlier from hbus->children for hot-remove
After we send a PCI_EJECTION_
immediately send us a PCI_BUS_RELATIONS message with
relations-
another thread, can find the being-ejected device, mark the
hpdev-
the device -- this races hv_eject_
Move the list_del() in hv_eject_
before we send PCI_EJECTION_
pci_
commit 17978524a636d00
Author: Dexuan Cui <email address hidden>
Date: Thu Nov 10 07:18:47 2016 +0000
PCI: hv: Fix hv_pci_remove() for hot-remove
1. We don't really need such a big on-stack buffer when sending the
teardown_
pci_message).
2. In the hot-remove case (PCI_EJECT), after we send PCI_EJECTION_
to the host, the host will send a RESCIND_CHANNEL message to us and the
host won't access the per-channel ringbuffer any longer, so we needn't send
PCI_
the host's completion message of PCI_BUS_D0EXIT, which will never come.
3. We should send PCI_BUS_D0EXIT after hv_send_
Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Bjorn Helgaas <email address hidden>
Reviewed-by: Jake Oshins <email address hidden>
Acked-by: K. Y. Srinivasan <email address hidden>
CC: Haiyang Zhang <email address hidden>
CC: Vitaly Kuznetsov <email address hidden>
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
tags: | added: kernel-da-key kernel-hyper-v |
Changed in linux (Ubuntu Xenial): | |
importance: | Undecided → Medium |
assignee: | Tim Gardner (timg-tpi) → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Zesty): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Yakkety): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
https:/ /lists. ubuntu. com/archives/ kernel- team/2017- March/082884. html