Thread (21 messages) 21 messages, 6 authors, 2017-05-01

Re: [kernel, v11, 01/10] powerpc/mmu: Add real mode support for IOMMU preregistered memory

From: Michael Ellerman <hidden>
Date: 2017-05-01 02:58:51
Also in: kvm

On Wed, 2017-03-22 at 04:21:47 UTC, Alexey Kardashevskiy wrote:
This makes mm_iommu_lookup() able to work in realmode by replacing
list_for_each_entry_rcu() (which can do debug stuff which can fail in
real mode) with list_for_each_entry_lockless().

This adds realmode version of mm_iommu_ua_to_hpa() which adds
explicit vmalloc'd-to-linear address conversion.
Unlike mm_iommu_ua_to_hpa(), mm_iommu_ua_to_hpa_rm() can fail.

This changes mm_iommu_preregistered() to receive @mm as in real mode
@current does not always have a correct pointer.

This adds realmode version of mm_iommu_lookup() which receives @mm
(for the same reason as for mm_iommu_preregistered()) and uses
lockless version of list_for_each_entry_rcu().

Signed-off-by: Alexey Kardashevskiy <redacted>
Reviewed-by: David Gibson <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/6b5c19c55266f6efd10ffac0e9f9f2

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help