# \[Xen-devel\] \[RFC 12/23\] xen: Extend page\_to\_mfn to take an offset in the page

- From: David Vrabel \<hidden\>
- Date: 2015-05-19 13:58:06 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2015/05/4497110
- Thread: https://ratatoskr.run/netdev/2015/05/4493744/t.md

```text
On 14/05/15 18:00, Julien Grall wrote:
> With 64KB page granularity support in Linux, a page will be split accross
> multiple MFN (Xen is using 4KB page granularity). Thoses MFNs may not be
> contiguous.
> 
> With the offset in the page, the helper will be able to know which MFN
> the driver needs to retrieve.

I think a gnttab_grant_foreign_access_ref()-like helper that takes a
page would be better.

You will probably want this helper able to return/fill a set of refs for
64 KiB pages.

David
```
