WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [Xen-changelog] [xen-unstable] [XEN] New memory_op XENME

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: [Xen-changelog] [xen-unstable] [XEN] New memory_op XENMEM_exchange. Allows atomic
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Fri, 16 Jun 2006 15:30:15 -0500
Delivery-date: Fri, 16 Jun 2006 13:30:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1FrG7U-0004wf-BA@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <E1FrG7U-0004wf-BA@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
     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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: [Xen-changelog] [xen-unstable] [XEN] New memory_op XENMEM_exchange. Allows atomic, Hollis Blanchard <=