xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] map grant refs at pfn = mfn
@ 2014-07-23 17:18 Stefano Stabellini
  2014-07-23 17:19 ` [PATCH v2 1/2] xen: introduce arch_iommu_grant_(un)map_page Stefano Stabellini
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Stefano Stabellini @ 2014-07-23 17:18 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Ian Campbell, Stefano Stabellini

Hi all,
this patch series introduces a second p2m mapping of grant reference on
ARM at guest physical address == machine address of the grant ref.  It
is safe because dom0 is already mapped 1:1. We export
XENFEAT_grant_map_identity to signal the guest that this second p2m
mapping is
available.

One reason for wanting the second p2m mapping is to avoid tracking mfn
to pfn mappings in the guest kernel. Since the same mfn can be granted
multiple times to the backend, finding the right pfn corresponding to a
given mfn can be difficult and expensive. Providing a second mapping at
a known address allow the kernel to access the page without knowing the
pfn.



Stefano Stabellini (2):
      xen: introduce arch_iommu_grant_(un)map_page
      xen/arm: introduce XENFEAT_grant_map_identity

 xen/arch/arm/p2m.c            |   19 +++++++++++++++++++
 xen/common/grant_table.c      |   35 +++++++++++++++++++++++++++--------
 xen/common/kernel.c           |    2 ++
 xen/include/asm-arm/p2m.h     |    4 ++++
 xen/include/asm-x86/p2m.h     |   13 +++++++++++++
 xen/include/public/features.h |    3 +++
 6 files changed, 68 insertions(+), 8 deletions(-)

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-07-24 11:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-23 17:18 [PATCH v2 0/2] map grant refs at pfn = mfn Stefano Stabellini
2014-07-23 17:19 ` [PATCH v2 1/2] xen: introduce arch_iommu_grant_(un)map_page Stefano Stabellini
2014-07-24 10:51   ` Julien Grall
2014-07-24 11:07     ` Stefano Stabellini
2014-07-24 11:14       ` Julien Grall
2014-07-24 11:16         ` Stefano Stabellini
2014-07-24 11:18           ` Julien Grall
2014-07-24 11:19             ` Stefano Stabellini
2014-07-23 17:19 ` [PATCH v2 2/2] xen/arm: introduce XENFEAT_grant_map_identity Stefano Stabellini
2014-07-24  6:48   ` Jan Beulich
2014-07-24 10:47     ` Stefano Stabellini
2014-07-24 11:58       ` Jan Beulich
2014-07-24  6:37 ` [PATCH v2 0/2] map grant refs at pfn = mfn Jan Beulich
2014-07-24  9:31 ` Tim Deegan
2014-07-24 10:28   ` Stefano Stabellini
2014-07-24 10:42     ` Tim Deegan
2014-07-24 10:55     ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).