[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v14 0/3] VT-d Device-TLB flush issue



From: Quan Xu <quan.xu@xxxxxxxxx>

these patches fix current timeout concern and also allow limited ATS support.

these patches are the rest ones:
1. move the domain crash logic up to the generic IOMMU layer

2. If Device-TLB flush timed out, we hide the target ATS device
   immediately. By hiding the device, we make sure it can't be
   assigned to any domain any longer (see device_assigned).

---
Not covered in this series:

    a) Eliminate the panic() in IOMMU_WAIT_OP, used only in VT-d register 
read/write.
       Further discussion is required on whether and how to improve it.
    b) Handle IOTLB/Context/IEC flush timeout.
---
Quan Xu (3):
  IOMMU/x86: use a struct pci_dev* instead of SBDF
  IOMMU: add domain crash logic
  IOMMU: fix vt-d Device-TLB flush timeout issue

 xen/drivers/passthrough/amd/iommu_cmd.c     | 19 ++++----
 xen/drivers/passthrough/amd/pci_amd_iommu.c |  4 +-
 xen/drivers/passthrough/ats.h               | 10 ++---
 xen/drivers/passthrough/iommu.c             | 54 ++++++++++++++++++++++-
 xen/drivers/passthrough/pci.c               |  6 +--
 xen/drivers/passthrough/vtd/extern.h        |  5 ++-
 xen/drivers/passthrough/vtd/intremap.c      |  8 ++--
 xen/drivers/passthrough/vtd/iommu.c         | 25 ++++++++---
 xen/drivers/passthrough/vtd/qinval.c        | 56 ++++++++++++++++++------
 xen/drivers/passthrough/vtd/x86/ats.c       | 21 +++++----
 xen/drivers/passthrough/x86/ats.c           | 67 ++++++++++++++++++-----------
 xen/include/xen/iommu.h                     |  3 ++
 xen/include/xen/pci.h                       |  1 +
 13 files changed, 195 insertions(+), 84 deletions(-)

-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.