WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Confusion about copy_to/from_guest

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Confusion about copy_to/from_guest
From: Tej <bewith.tej@xxxxxxxxx>
Date: Mon, 26 Apr 2010 08:02:40 +0530
Delivery-date: Sun, 25 Apr 2010 19:33:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=3eSoXtr6pLnlwc5JmCYooS59kRA07yWwbWYFY125sJw=; b=dzl628mocBuNl79CyzQLo7LHrhiBtjX2JvZit+dDTk3QCvNz56vxTiskYSOT10MPQI y46EXP00MwxrUvMjQfkvS4FrCWjT+f1yiBKM/oQPLa2FTOu5eg+qQFd99V3J7QWzPz6h P+Qed84Eu7E7uvMn3og22hXQrB/G1BLng0jd8=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>