Make the pcidevs_lock a recursive one
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest2 patches 11 repliesIn review
- v32 patches 17 repliesSuperseded
- v22 patches 13 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 7 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | IOMMU/spinlock: Fix a bug found in AMD IOMMU initializationxen/ | +2 | 2 replies | |
| 2/2 | IOMMU/spinlock: Make the pcidevs_lock a recursive one.xen/ xen/ xen/ +12 more | +110 | 4 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Dario Faggioli | Kevin Tian | Jan Beulich |
|---|---|---|---|
| 1/2 | R-b | R-b | |
| 2/2 | R-b | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v4 0/2] Make the pcidevs_lock a recursive one
This patch set makes the pcidevs_lock a recursive one, as pcidevs_lock is going to be recursively taken for hiding ATS device, when VT-d Device-TLB flush timed out. It is a prereq patch set for Patch:'VT-d Device-TLB flush issue'.
In detail:
1. Fix a bug found in AMD IOMMU initialization
pcidevs_lock doesn't require interrupts to be disabled while being acquired. However there remains an exception in AMD IOMMU code, where the lock is acquired with interrupt disabled. This inconsistency might lead to deadlock.
The fix is straightforward to use spin_lock instead. Also interrupt has been enabled when this function is invoked, so we're sure consistency around pcidevs_lock can be guaranteed after this fix.
2. Make the pcidevs_lock a recursive one.
pcidevs_lock is going to be recursively taken for hiding ATS device, when VT-d Device-TLB flush timed out.
--Changes in v4:
* Enhance changelogs.
* Rebase against 0aa1330aac92.
Quan Xu (2):
IOMMU/spinlock: Fix a bug found in AMD IOMMU initialization IOMMU/spinlock: Make the pcidevs_lock a recursive one.
xen/arch/x86/domctl.c | 8 +-- xen/arch/x86/hvm/vmsi.c | 4 +- xen/arch/x86/irq.c | 8 +-- xen/arch/x86/msi.c | 16 ++--- xen/arch/x86/pci.c | 4 +- xen/arch/x86/physdev.c | 16 ++--- xen/common/sysctl.c | 4 +- xen/drivers/passthrough/amd/iommu_init.c | 9 ++- xen/drivers/passthrough/amd/iommu_map.c | 2 +- xen/drivers/passthrough/amd/pci_amd_iommu.c | 4 +- xen/drivers/passthrough/pci.c | 97 ++++++++++++++++++----------- xen/drivers/passthrough/vtd/intremap.c | 2 +- xen/drivers/passthrough/vtd/iommu.c | 14 ++--- xen/drivers/video/vga.c | 4 +- xen/include/xen/pci.h | 5 +- 15 files changed, 110 insertions(+), 87 deletions(-)
Signature · 7 lines
1.9.1 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel