Skip to contentSkip to conversation

New memory_op XENMEM_exchange. Allows atomic

Xen-changelog Hollis Blanchard 1 participant 1 message Jun 16, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · Xen patchbot-unstable

# HG changeset patch
# User [email protected]
# 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.

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.

xen/common/memory.c Fri Jun 16 15:18:04 2006 -0500 renamed from xen/common/memory.c Fri Jun 16 14:56:52 2006 -0500 +1 -1
diff -r 57715edb2a5c xen/common/memory.c
@@ -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;
Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center