All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ethan" <zhangyqzh@gmail.com>
To: xen-devel@lists.xenproject.org
Subject: Help!About Xen source code;About do_memory_op.
Date: Fri, 1 Aug 2014 10:42:48 +0800	[thread overview]
Message-ID: <000401cfad32$4bcd27a0$e36776e0$@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]

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‘ mean? 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 !!!


[-- Attachment #1.2: Type: text/html, Size: 2570 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

                 reply	other threads:[~2014-08-02  2:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000401cfad32$4bcd27a0$e36776e0$@gmail.com' \
    --to=zhangyqzh@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.