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-ia64-devel

[Xen-ia64-devel] copying data to guest

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx, Tristan Gingold <tgingold@xxxxxxx>
Subject: [Xen-ia64-devel] copying data to guest
From: Jes Sorensen <jes@xxxxxxx>
Date: Fri, 02 Mar 2007 14:57:07 +0100
Delivery-date: Fri, 02 Mar 2007 05:56:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (X11/20060527)
Hi,

For the SAL emulator I am trying to figure out how to copy data to guest
kernel space, based on a virtual pointer I receive from the guest.

I have tried pretty much everything I can think off, using
copy_to_guest(), xencomm_copy_to_guest() with and without this wacko
XEN_GUEST_HANDLE() stuff.

Trying to read xencomm.c it seems that xencomm_copy_to_guest() needs
some magic handle, but I can't seem to figure out how to create this.
I cannot change dom0 to do this differently, or at least I really don't
want to.

So before I have enough and start throwing my computers out the window
and jump up and down the tables (and trust me, I am very close to that
state right now), is there a kind sould who can save me and provide me
with a simple working example?

As mentioned, I basically I have have a virtual kernel pointer provided
by dom0, I need to copy one 64 bit word to this address in dom0 space
from Xen. How do I do it?

The address was obtained by dom0 via kmalloc, in this specific case it's
0xe000003003837280, so the metaphysical address would be 0x3003837280

Thanks,
Jes

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