[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Help!About Xen source code;About do_memory_op.


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Ethan" <zhangyqzh@xxxxxxxxx>
  • Date: Fri, 1 Aug 2014 10:42:48 +0800
  • Delivery-date: Sat, 02 Aug 2014 07:02:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac+tMkgc9ukns3AcTKa1IjS3FH1QDQ==

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

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.