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/
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?
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.