From: Keir Fraser Subject: Re: Remapping memory in a HVM DomU from one pfn to another? Date: Tue, 10 Jun 2008 13:15:05 +0100 Message-ID: References: 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.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 10/6/08 13:02, "James Harper" wrote: >> XENMEM_exchange. Look at 'struct xen_memory_exchange' in >> xen/include/public/memory.h. Note that GMFN means PFN for an HVM > guest. >> Hopefully it is all self-explanatory enough. >> > > I tried it and 'xm dmesg' says: > > (XEN) hvm.c:747:d11 memory_op 11. > > And looking in hvm.c, it appears that this occurs in > do_memory_op_compat32(...) and the only supported memory_op function is > XENMEM_add_to_physmap. Does that mean I'm out of luck? It does for now. We should be using the existing PV 32-on-64 compat shim for memory_op() hypercall for HVM 32-on-64 too. As soon as someone does that work, this hypercall will be available to you. It would already work for HVM 64-on-64 or 32-on-32. -- Keir