All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] VT-d flush issue
@ 2015-12-03  8:09 Quan Xu
  2015-12-03  8:09 ` [PATCH 1/2] VT-d: Reduce spin timeout to 1ms, which can be boot-time changed Quan Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Quan Xu @ 2015-12-03  8:09 UTC (permalink / raw)
  To: jbeulich, kevin.tian
  Cc: feng.wu, eddie.dong, george.dunlap, andrew.cooper3, tim,
	xen-devel, jun.nakajima, Quan Xu, keir

This patches are based on Kevin Tian's previous discussion 'Revisit VT-d asynchronous flush issue'.
Fix current timeout concern and also allow limited ATS support in a light way:

1. Reduce spin timeout to 1ms, which can be boot-time changed with 'iommu_qi_timeout_ms'.
   For example:
           multiboot /boot/xen.gz ats=1 iommu_qi_timeout_ms=100

2. Fix vt-d flush timeout issue.

    If IOTLB/Context/IETC flush is timeout, we should think all devices under this IOMMU cannot function correctly.
    So for each device under this IOMMU we'll mark it as unassignable and kill the domain owning the device.

    If Device-TLB flush is timeout, we'll mark the target ATS device as unassignable and kill the domain owning
    this device. When the invalidation request descriptor is timeout, hypervisor cannot find out which Device-TLB
    invalidate descriptor submitted before is not correct. So mark all of the domain's ATS devices as unassignable.

    If impacted domain is Dom0 or hardware domain, just throw out a warning. It's an open here whether we want to kill
    Dom0 or hardware domain (or directly panic hypervisor). Comments are welcomed.

    Device marked as unassignable will be disallowed to be further assigned to any domain.

*Kevin Tian did basic functional review.

Quan Xu (2):
  VT-d: Reduce spin timeout to 1ms, which can be boot-time changed.
  VT-d: Fix vt-d flush timeout issue.

 xen/drivers/passthrough/vtd/iommu.c  |   6 ++
 xen/drivers/passthrough/vtd/iommu.h  |   2 +
 xen/drivers/passthrough/vtd/qinval.c | 111 ++++++++++++++++++++++++++++++++++-
 xen/include/xen/pci.h                |   7 +++
 4 files changed, 123 insertions(+), 3 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-12-10  2:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-03  8:09 [PATCH 0/2] VT-d flush issue Quan Xu
2015-12-03  8:09 ` [PATCH 1/2] VT-d: Reduce spin timeout to 1ms, which can be boot-time changed Quan Xu
2015-12-03  8:09 ` [PATCH 2/2] VT-d: Fix vt-d flush timeout issue Quan Xu
2015-12-04  1:52   ` Tian, Kevin
2015-12-04  6:04     ` Xu, Quan
2015-12-03 13:15 ` [PATCH 0/2] VT-d flush issue Jan Beulich
2015-12-03 14:51   ` Xu, Quan
2015-12-04  1:49   ` Tian, Kevin
2015-12-04  6:55     ` Jan Beulich
2015-12-05  7:31       ` Xu, Quan
2015-12-09 13:30       ` Xu, Quan
2015-12-09 13:37         ` Jan Beulich
2015-12-10  2:32           ` Xu, Quan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.