From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: Question about mapping between domains Date: Wed, 15 Jul 2015 13:00:58 +0100 Message-ID: <1436961658.32371.20.camel@citrix.com> References: <1436448706-2687-1-git-send-email-oleksandr.dmytryshyn@globallogic.com> <1436778275.7019.32.camel@citrix.com> <1436889013.11153.5.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Keir Fraser , Ian Jackson , Oleksandr Dmytryshyn , Tim Deegan , xen-devel , Stefano Stabellini , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Wed, 2015-07-15 at 12:51 +0100, Stefano Stabellini wrote: > On Wed, 15 Jul 2015, Oleksandr Dmytryshyn wrote: > > Hi, Ian. Thank You for the response. > > > > > Look at how the balloon driver does it, the hypercalls you want are > > > XENMEM_(increase|decrease)_reservation. > > I'll try to use those hypercalls. > > In the modern Linux kernels, you just need to call gnttab_alloc_pages > (see drivers/xen/grant-table.c:gnttab_alloc_pages). The problem here is to grant map pages to fill and existing buffer which is already allocated/supplied elswhere (in the GPU stack I suppose).