From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tej Subject: Confusion about copy_to/from_guest Date: Mon, 26 Apr 2010 08:02:40 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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, ) 2. copy_to_guest(arg, hyp_list_head, 1) or copy_to_guest(arg, hyp_list_head, ) 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