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

[Xen-devel] Confusion about copy_to/from_guest


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Tej <bewith.tej@xxxxxxxxx>
  • Date: Mon, 26 Apr 2010 08:02:40 +0530
  • Delivery-date: Sun, 25 Apr 2010 19:33:28 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=FtdzAOwT5tO9KNCL3x6KrsTIfcFruuz8kdbi8ctvevO5UmE2YzcLA8wr2h6N4ty9tU zXQxhQR77CYLwXznzPr39OxH4Ih7z7MuhWa5p+Vtsqyf55W0eIOz+F0SCNVSTyWAR7Ax nYTc3SsdJg7YpjiuuTuzhqwi8KzHPjpdULr3I=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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