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

Re: [Xen-devel] How to read/write a file inside xen

To: John Liu <bradevuu@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] How to read/write a file inside xen
From: Johnny R <xen4wr@xxxxxxxxx>
Date: Sat, 9 Jul 2011 23:52:27 +0800
Cc:
Delivery-date: Sat, 09 Jul 2011 08:53:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Zy+KTKoP2gC7X8DeoQRJYuc1OblIEUA2aYGMPoGsmCI=; b=b+X66hAkpvVRd68KZAoXucQhBqApvxQZeqCzjvUxaKFI5Ma1P6jR2ike0JZV0oA/H0 l0XQFNIPuACYj3QoRh253jffQmTbLQFlSsJuaK6YbHsUqHds61FkYKy65ArscKnqkB7H Snl+ccUGw+tfWjGHQtX2M8dbz0QxlZb7dp9cw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CABxq0NhapAFmhPEsjfoErttogn38xAcG+VDj0YBzari2y9Bd_w@xxxxxxxxxxxxxx>
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>
References: <CABxq0Nj438yKUvfV_P2ZoAbLrsPZCp8U3m1jWY9k4gqJD8-BnQ@xxxxxxxxxxxxxx> <4E187376.7050602@xxxxxxxxx> <CABxq0NhapAFmhPEsjfoErttogn38xAcG+VDj0YBzari2y9Bd_w@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I want to do file operation inside the hypervisor.Seems like there is no file mechanism implemented inside hypervisor.So if i want to pull this,say i need to some info of a page,i need to map this page,and give the pointer that point to the start of this page to dom0.Finally let dom0 write the file for me? 

在 2011年7月9日 下午11:38,Johnny R <xen4wr@xxxxxxxxx>写道:
inside hypervisor so if i want to do file operation inside the hypervisor i need to map a memory in dom0,and then do the rest work in dom0?


2011/7/9 John Liu <bradevuu@xxxxxxxxx>
You mean do file operation in dom0? or inside hypervisor.   

xen just give the Guest OS the privilege to write directly to disk.
-- I got a little confused. Why need special privilege for write on disk? as long as PTE permission is ok.



于 2011/7/9 11:04, Johnny R 写道:
  I tried to write a file inside xen during hypercall or do_page_fault,but I find out that I can not use linux kernel code to acomplish this.After searching in the xen's source code,I find  not clue of xen itself using any file operation,which confuse me.So i want to ask how to write/read a file inside xen,and how xen swap out a page or xen just give the Guest OS the privilege to write directly to disk.
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>