Skip to content
Commit d742db70 authored by Simon Leiner's avatar Simon Leiner Committed by Juergen Gross
Browse files

xen/xenbus: Fix granting of vmalloc'd memory



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: default avatarSimon Leiner <simon@leiner.me>
Reviewed-by: default avatarStefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/20200825093153.35500-1-simon@leiner.me


Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
parent c330fb1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment