]> git.baikalelectronics.ru Git - kernel.git/commit
xen/virtio: Convert PAGE_SIZE/PAGE_SHIFT/PFN_UP to Xen counterparts
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Sat, 8 Oct 2022 15:10:13 +0000 (18:10 +0300)
committerJuergen Gross <jgross@suse.com>
Fri, 14 Oct 2022 12:22:23 +0000 (14:22 +0200)
commitdef9d965c35d957d80471559dd2a293abeaba1fe
treeb6097f63f7d4606f40338d86f86a7401e9aa06cf
parent2f9b7a01b3a33f4e422fe5f35b9676ac8ed3cdeb
xen/virtio: Convert PAGE_SIZE/PAGE_SHIFT/PFN_UP to Xen counterparts

Currently, a grant ref is always based on the Xen page granularity
(4KB), and guest commonly uses the same page granularity.
But the guest may use a different page granularity (i.e 64KB).
So adopt the code to be able to deal with it.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Link: https://lore.kernel.org/r/20221008151013.2537826-3-olekstysh@gmail.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/grant-dma-ops.c