From: Hollis Blanchard Subject: Re: [Xen-changelog] [xen-unstable] [XEN] New memory_op XENMEM_exchange. Allows atomic Date: Fri, 16 Jun 2006 15:30:15 -0500 Message-ID: <1150489815.18946.61.camel@basalt.austin.ibm.com> References: Mime-Version: 1.0 Content-Type: text/plain 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, 2006-06-16 at 15:20 +0000, Xen patchbot-unstable wrote: > # HG changeset patch > # User kfraser@dhcp93.uk.xensource.com > # Node ID ee3d108289370351347f46284024f3347897d2bb > # Parent 231e07e22f9cd09e310a0db65ed62acb12c51855 > [XEN] New memory_op XENMEM_exchange. Allows atomic > exchange of one memory reservation for another of the > same size, but with different properties. > Signed-off-by: Keir Fraser I'm not sure how to get these cases to generate compile warnings/errors on x86... since the type doesn't match with xen_memory_reservation, PPC gets errors. Use correct "PFN" type. Signed-off-by: Hollis Blanchard diff -r 57715edb2a5c xen/common/memory.c --- a/xen/common/memory.c Fri Jun 16 14:56:52 2006 -0500 +++ b/xen/common/memory.c Fri Jun 16 15:18:04 2006 -0500 @@ -282,7 +282,7 @@ memory_exchange(XEN_GUEST_HANDLE(xen_mem LIST_HEAD(in_chunk_list); LIST_HEAD(out_chunk_list); unsigned long in_chunk_order, out_chunk_order; - unsigned long gpfn, gmfn, mfn; + xen_pfn_t gpfn, gmfn, mfn; unsigned long i, j, k; unsigned int memflags = 0; long rc = 0; -- Hollis Blanchard IBM Linux Technology Center