Hollis Blanchard
2006-Jun-16 20:30 UTC
[Xen-devel] Re: [Xen-changelog] [xen-unstable] [XEN] New memory_op XENMEM_exchange. Allows atomic
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 <keir@xensource.com>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 <hollisb@us.ibm.com> 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel