[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2 RFC 0/3] introduce XENMEM_get_dma_buf and XENMEM_put_dma_buf



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


Changes in v2:
- actually don't print the warning more than once.


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         |   21 ++++++++++++--
 xen/include/asm-arm/mm.h    |   12 ++++++++
 xen/include/asm-x86/p2m.h   |   12 ++++++++
 xen/include/public/memory.h |   64 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 149 insertions(+), 3 deletions(-)


git://xenbits.xen.org/people/sstabellini/xen-unstable.git get_dma_buf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.