xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Confusion about copy_to/from_guest
@ 2010-04-26  2:32 Tej
  2010-04-26  5:33 ` Keir Fraser
  0 siblings, 1 reply; 3+ messages in thread
From: Tej @ 2010-04-26  2:32 UTC (permalink / raw)
  To: xen-devel

All,

Small and naive question about the semantics of copy_to/from_guest. In
Kernel space I have created a linked list lets say 10 elements. Now I
have created similar list in hypervisor.

Now passing the list_head from kernel using hypercall. Now how do I
copy the element between kernel and hypervisor.

1. copy_from_guest(hyp_list_head, arg, 1) or
copy_from_guest(hyp_list_head, arg, <num_of_elements_list>)
2. copy_to_guest(arg, hyp_list_head, 1) or copy_to_guest(arg,
hyp_list_head, <num of element in list>)

2nd question:
I did first one, but first element of list was not accessible in
hypervisor space, why?


It looks like I am doing something horribly wrong, so can someone
point out that.

Thanks for any help
-tej

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-27 11:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26  2:32 Confusion about copy_to/from_guest Tej
2010-04-26  5:33 ` Keir Fraser
2010-04-27 11:52   ` Tej

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).