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] Question: How to write a file in domain 0?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Question: How to write a file in domain 0?
From: Zhao Lin <zlin2@xxxxxxxxxxxxxx>
Date: Tue, 30 Jun 2009 11:42:58 -0400
Delivery-date: Mon, 06 Jul 2009 08:02:33 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=avCangQFecTYrnpZhUJihelxAxqrVc5EChZRciPZ1/E=; b=aPv5QSd9yeQFOgTopwvEO2rBIwtEsvan2E3rbF7aRzMPtiI2yDp6thUaZdCQVte/tp WvZTYSHAjESXB6q6LLR/RWp0OtSb0UsT+u0Mppf+NzTXpQbXrdu/r1PfKAqTNGinjm1Y jObyErgmCxjw0k7vV5/O3RAv1yDR7+pf6KvXo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=WdoTvgh0Vy0rn6F+ys7Dn5A9J4Iq3NBx4JEDclHuMKXPbOxHt5/sIsNOHtA6z9lQDl 2ObGdkdCGjb/WSFWoSjI3E8zuecRlTO4lmF3gdHo0TwvOM+vSDc9mP0Lk/6oWAT18rhW XyYJH/BhaYzIXZb2FVMTtJwfCXnKT4QX2XyPs=
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
hey all,

a complete newbie here..I'm trying to implement a hypercall that takes
a string argument and then appends the string to a selected file
stored in domain0's hard disk.

I browsed through the source code but couldn't figure out a way to do
this. I'm thinking that I might need to get a reference to domain 0's
kernel and then ask the kernel to call printk() with the provided
string. Not sure if this is correct since I don't even know how domain
0 as well as other domains is referenced by the hypervisor..

How should I approach this? I'm desperately trying to learn here..

Hope this mailing list is the correct place to post my question..Open
to any suggestion. Thanks,

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