xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Help!About Xen source code;About do_memory_op.
@ 2014-08-01  2:42 Ethan
  0 siblings, 0 replies; only message in thread
From: Ethan @ 2014-08-01  2:42 UTC (permalink / raw)
  To: xen-devel


[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-02  2:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-01  2:42 Help!About Xen source code;About do_memory_op Ethan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).