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

RE: [Xen-devel] [PATCH 8/9] tmem: invocations of tmem codefromexisting x

To: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 8/9] tmem: invocations of tmem codefromexisting xen code
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 06 Feb 2009 14:35:27 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 06 Feb 2009 06:35:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d13095bb-2050-409f-9723-505f638e1049@default>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <498C0B95.76E4.0078.0@xxxxxxxxxx> <d13095bb-2050-409f-9723-505f638e1049@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> 06.02.09 15:25 >>>
>I have to admit I am baffled by all aspects of XEN_GUEST_HANDLE
>and just hacked on it until the code worked.  I would be grateful
>for either an explanation of xen/include/xlat.lst or a pointer
>to an explanation... or, even better, hints on how to fix
>my code to properly use XEN_GUEST_HANDLE_64.

The easiest thing is certainly to simply replace XEN_GUEST_HANDLE by
XEN_GUEST_HANDLE_64.

As to xlat.lst, just add ? entry there - the ? says the type needs to be
checked, and it is followed by the type's name and the header it is
found in. This will generate a CHECK_<typename> macro in
xen/include/compat/xlat.h, which you then ought to use somewhere in
the source code. Just pick one of the existing entries to see how this
works.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel