https://github.com/torvalds/linux
Revision d742db70033c745e410523e00522ee0cfe2aa416 authored by Simon Leiner on 25 August 2020, 09:31:52 UTC, committed by Juergen Gross on 27 August 2020, 06:58:48 UTC
On some architectures (like ARM), virt_to_gfn cannot be used for
vmalloc'd memory because of its reliance on virt_to_phys. This patch
introduces a check for vmalloc'd addresses and obtains the PFN using
vmalloc_to_pfn in that case.

Signed-off-by: Simon Leiner <simon@leiner.me>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/20200825093153.35500-1-simon@leiner.me
Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent c330fb1
History
Tip revision: d742db70033c745e410523e00522ee0cfe2aa416 authored by Simon Leiner on 25 August 2020, 09:31:52 UTC
xen/xenbus: Fix granting of vmalloc'd memory
Tip revision: d742db7

back to top