[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] introduce guest_handle_for_field()
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1348140679 -7200 # Node ID d364becfb0835f69e85d273fe2b29035c2d975df # Parent 06a0774df47cad34ad889767bd65bdf1722dd76a introduce guest_handle_for_field() This helper turns a field of a GUEST_HANDLE in a GUEST_HANDLE. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 06a0774df47c -r d364becfb083 xen/include/asm-x86/guest_access.h --- a/xen/include/asm-x86/guest_access.h Thu Sep 20 09:22:55 2012 +0200 +++ b/xen/include/asm-x86/guest_access.h Thu Sep 20 13:31:19 2012 +0200 @@ -51,6 +51,9 @@ (XEN_GUEST_HANDLE(type)) { _x }; \ }) +#define guest_handle_for_field(hnd, type, fld) \ + ((XEN_GUEST_HANDLE(type)) { &(hnd).p->fld }) + #define guest_handle_from_ptr(ptr, type) \ ((XEN_GUEST_HANDLE(type)) { (type *)ptr }) #define const_guest_handle_from_ptr(ptr, type) \ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |