xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] introduce XENMEM_get_dma_buf and XENMEM_put_dma_buf
@ 2013-07-31 17:57 Stefano Stabellini
  2013-07-31 17:57 ` [PATCH RFC 1/3] xen/arm: implement steal_page Stefano Stabellini
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Stefano Stabellini @ 2013-07-31 17:57 UTC (permalink / raw)
  To: xen-devel; +Cc: Tim Deegan, Ian Campbell, Stefano Stabellini

Hi all,
this patch series introduces two new hypercalls to allow autotranslate
guests to allocate a contiguous buffer in machine addresses.
The XENMEM_get_dma_buf returns the mfns and makes sure to pin the pages
so that the hypervisor won't change their p2m mappings while in use.
XENMEM_put_dma_buf simply unpins the pages.

The implementation of XENMEM_put_dma_buf is missing, as it's actually
unused.

The page pinning is also missing from this series. I would appreciate
feedback on the best way to implement it, especially on x86.

Cheers,

Stefano


Stefano Stabellini (3):
      xen/arm: implement steal_page
      xen: provide empty stubs for guest_physmap_(un)pin_range on arm and x86
      xen: introduce XENMEM_get_dma_buf and XENMEM_put_dma_buf

 xen/arch/arm/mm.c           |   43 +++++++++++++++++++++++++++++
 xen/common/memory.c         |   20 +++++++++++--
 xen/include/asm-arm/mm.h    |   12 ++++++++
 xen/include/asm-x86/p2m.h   |   12 ++++++++
 xen/include/public/memory.h |   64 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 148 insertions(+), 3 deletions(-)

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

end of thread, other threads:[~2013-08-01 14:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31 17:57 [PATCH RFC 0/3] introduce XENMEM_get_dma_buf and XENMEM_put_dma_buf Stefano Stabellini
2013-07-31 17:57 ` [PATCH RFC 1/3] xen/arm: implement steal_page Stefano Stabellini
2013-07-31 17:57 ` [PATCH RFC 2/3] xen: provide empty stubs for guest_physmap_(un)pin_range on arm and x86 Stefano Stabellini
2013-07-31 17:57 ` [PATCH RFC 3/3] xen: introduce XENMEM_get_dma_buf and XENMEM_put_dma_buf Stefano Stabellini
2013-08-01  9:41 ` [PATCH RFC 0/3] " David Vrabel
2013-08-01 14: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).