From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ethan" Subject: =?gb2312?b?SGVscKOhQWJvdXQgWGVuIHNvdXJjZSBjb2Rlo7tB?= =?gb2312?b?Ym91dCBkb19tZW1vcnlfb3Au?= Date: Fri, 1 Aug 2014 10:42:48 +0800 Message-ID: <000401cfad32$4bcd27a0$e36776e0$@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1146673114671307701==" Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XDPHY-00065h-Pz for xen-devel@lists.xenproject.org; Sat, 02 Aug 2014 02:42:53 +0000 Received: by mail-pd0-f195.google.com with SMTP id ft15so1889679pdb.10 for ; Fri, 01 Aug 2014 19:42:49 -0700 (PDT) Received: from localhostPC ([60.247.46.61]) by mx.google.com with ESMTPSA id j17sm15392267pdl.31.2014.08.01.19.42.46 for (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Aug 2014 19:42:48 -0700 (PDT) Content-Language: zh-cn List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org This is a multipart message in MIME format. --===============1146673114671307701== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01CFAD75.59F103E0" Content-Language: zh-cn This is a multipart message in MIME format. ------=_NextPart_000_0005_01CFAD75.59F103E0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable In Xen source about Hypercall, there is a function called do_memory_op(unsigned long cmd, XEN_GUEST_HANDLE(void) arg). What does 'XEN_GUEST_HANDLE=A1=AE mean=A3=BF I search the source code and only = find the macro. I know it is a pointer to a structure containing an operation. But how = does it get its actual parameters? Also, in 'do_memory_op()' there is a function called memory_exchange(guest_handle_cast(arg, xen_memory_exchange_t)). What = does 'guest_handle_cast' mean? In a word, how does 'memory_exchange' get the actual memory address? Or = how does struct 'xen_memory_exchange_t' get assigned? Thank you !!! ------=_NextPart_000_0005_01CFAD75.59F103E0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

In Xen source about Hypercall, = there is a function called do_memory_op(unsigned long cmd, = XEN_GUEST_HANDLE(void) arg). What does 'XEN_GUEST_HANDLE=A1=AE = mean=A3=BF I search the source code and only find the macro. I know = it is a pointer to a structure containing an operation. But how does it = get its actual parameters?
Also, in 'do_memory_op()' there is a = function called memory_exchange(guest_handle_cast(arg, = xen_memory_exchange_t)). What does 'guest_handle_cast' mean?
In a = word, how does 'memory_exchange' get the actual memory address? Or how = does struct 'xen_memory_exchange_t' get assigned?
Thank you = !!!

------=_NextPart_000_0005_01CFAD75.59F103E0-- --===============1146673114671307701== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============1146673114671307701==--