All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH 0/3] AMD/IOMMU: re-work mode updating
@ 2019-11-06 15:16 Jan Beulich
  2019-11-06 15:18 ` [Xen-devel] [PATCH 1/3] AMD/IOMMU: don't needlessly trigger errors/crashes when unmapping a page Jan Beulich
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Jan Beulich @ 2019-11-06 15:16 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, Sander Eikelenboom, Andrew Cooper

update_paging_mode() in the AMD IOMMU code expects to be invoked with
the PCI devices lock held. The check occurring only when the mode
actually needs updating, the violation of this rule by the majority
of callers did go unnoticed until per-domain IOMMU setup was changed
to do away with on-demand creation of IOMMU page tables.

Unfortunately the only half way reasonable fix to this that I could
come up with requires more re-work than would seem desirable at this
time of the release process, but addressing the issue seems
unavoidable to me as its manifestation is a regression from the
IOMMU page table setup re-work. The change also isn't without risk
of further regressions - if in patch 2 I've missed a code path that
would also need to invoke the new hook, then this might mean non-
working guests (with passed-through devices on AMD hardware).

1: AMD/IOMMU: don't needlessly trigger errors/crashes when unmapping a page
2: introduce GFN notification for translated domains
3: AMD/IOMMU: use notify_dfn() hook to update paging mode

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

end of thread, other threads:[~2019-11-12 10:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06 15:16 [Xen-devel] [PATCH 0/3] AMD/IOMMU: re-work mode updating Jan Beulich
2019-11-06 15:18 ` [Xen-devel] [PATCH 1/3] AMD/IOMMU: don't needlessly trigger errors/crashes when unmapping a page Jan Beulich
2019-11-06 17:12   ` Andrew Cooper
2019-11-07 10:13     ` Jan Beulich
2019-11-07 12:04   ` Paul Durrant
2019-11-12  9:59   ` Jürgen Groß
2019-11-06 15:19 ` [Xen-devel] [PATCH 2/3] introduce GFN notification for translated domains Jan Beulich
2019-11-07 11:35   ` George Dunlap
2019-11-07 11:47     ` Jan Beulich
2019-11-07 12:10       ` George Dunlap
2019-11-07 12:45         ` Jan Beulich
2019-11-06 15:19 ` [Xen-devel] [PATCH 3/3] AMD/IOMMU: use notify_dfn() hook to update paging mode Jan Beulich
2019-11-06 17:31 ` [Xen-devel] [PATCH 0/3] AMD/IOMMU: re-work mode updating Andrew Cooper
2019-11-07  7:36   ` Jan Beulich
2019-11-07 12:49     ` Andrew Cooper
2019-11-07 13:17       ` Jan Beulich
2019-11-06 18:29 ` Sander Eikelenboom
2019-11-07  7:32   ` Jan Beulich

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.