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

[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@xxxxxxxxxxxxxxxxxxxxxxx
> # 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@xxxxxxxxxxxxx>

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@xxxxxxxxxx>

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
     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



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