New memory_op XENMEM_exchange. Allows atomic
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Xen patchbot-unstable
# HG changeset patch
# User [email protected]
# Node IDee3d108289370351347f46284024f3347897d2bb# Parent231e07e22f9cd09e310a0db65ed62acb12c51855[XEN] Newmemory_opXENMEM_exchange. Allows atomic exchange of one memory reservation for another of the same size, but with different properties.Signed-off-by Keir Fraser <[email protected]>
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 <[email protected]>
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
@@ -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