From: Zhao Lin Subject: Question: How to write a file in domain 0? Date: Tue, 30 Jun 2009 11:42:58 -0400 Message-ID: <55d587e20906300842qd5a512dg1919a0ee157ae6de@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 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,