提交 ba5d1012 编写于 作者: J Jeremy Fitzhardinge 提交者: Konrad Rzeszutek Wilk

xen/gntdev: stop using "token" argument

It's the struct page of the L1 pte page.  But we can get its mfn
by simply doing an arbitrary_virt_to_machine() on it anyway (which is
the safe conservative choice; since we no longer allow HIGHPTE pages,
we would never expect to be operating on a mapped pte page).
Signed-off-by: NJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 9329e760
...@@ -209,8 +209,8 @@ static int find_grant_ptes(pte_t *pte, pgtable_t token, ...@@ -209,8 +209,8 @@ static int find_grant_ptes(pte_t *pte, pgtable_t token,
u64 pte_maddr; u64 pte_maddr;
BUG_ON(pgnr >= map->count); BUG_ON(pgnr >= map->count);
pte_maddr = (u64)pfn_to_mfn(page_to_pfn(token)) << PAGE_SHIFT; pte_maddr = arbitrary_virt_to_machine(pte).maddr;
pte_maddr += (unsigned long)pte & ~PAGE_MASK;
gnttab_set_map_op(&map->map_ops[pgnr], pte_maddr, gnttab_set_map_op(&map->map_ops[pgnr], pte_maddr,
GNTMAP_contains_pte | map->flags, GNTMAP_contains_pte | map->flags,
map->grants[pgnr].ref, map->grants[pgnr].ref,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册