* Question: How to write a file in domain 0?
@ 2009-06-30 15:42 Zhao Lin
2009-07-12 3:36 ` Samuel Thibault
0 siblings, 1 reply; 6+ messages in thread
From: Zhao Lin @ 2009-06-30 15:42 UTC (permalink / raw)
To: xen-devel
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,
^ permalink raw reply [flat|nested] 6+ messages in thread
* Question: How to write a file in domain 0?
@ 2009-06-30 19:16 Zhao Lin
0 siblings, 0 replies; 6+ messages in thread
From: Zhao Lin @ 2009-06-30 19:16 UTC (permalink / raw)
To: xen-devel
============
This email has been sent this morning..but not sure if it's been
received so I'm sending it again.
If this is not the proper mail list for my question, can anyone
suggest the proper one? Thanks,
============
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,
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Question: How to write a file in domain 0?
2009-06-30 15:42 Question: How to write a file in domain 0? Zhao Lin
@ 2009-07-12 3:36 ` Samuel Thibault
2009-07-12 12:23 ` Zhao Lin
0 siblings, 1 reply; 6+ messages in thread
From: Samuel Thibault @ 2009-07-12 3:36 UTC (permalink / raw)
To: Zhao Lin; +Cc: xen-devel
Hello,
You may want to have a look at fsfront/fsback.
Samuel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Question: How to write a file in domain 0?
2009-07-12 3:36 ` Samuel Thibault
@ 2009-07-12 12:23 ` Zhao Lin
2009-07-12 14:21 ` Hui Kang
2009-07-12 14:59 ` Samuel Thibault
0 siblings, 2 replies; 6+ messages in thread
From: Zhao Lin @ 2009-07-12 12:23 UTC (permalink / raw)
To: Samuel Thibault, Zhao Lin, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 336 bytes --]
thanks for reply.. but i think i might need to pass the data to domain0
through shared memory and then called corresponding functions in domain0
kernel to finish the task.
On Sat, Jul 11, 2009 at 11:36 PM, Samuel Thibault <
samuel.thibault@ens-lyon.org> wrote:
> Hello,
>
> You may want to have a look at fsfront/fsback.
>
> Samuel
>
[-- Attachment #1.2: Type: text/html, Size: 648 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Question: How to write a file in domain 0?
2009-07-12 12:23 ` Zhao Lin
@ 2009-07-12 14:21 ` Hui Kang
2009-07-12 14:59 ` Samuel Thibault
1 sibling, 0 replies; 6+ messages in thread
From: Hui Kang @ 2009-07-12 14:21 UTC (permalink / raw)
To: Zhao Lin; +Cc: Samuel Thibault, xen-devel
I think the actual read/write operations are done in the /tapdisk
/process in Dom0.
- Hui
Zhao Lin wrote:
> thanks for reply.. but i think i might need to pass the data to
> domain0 through shared memory and then called corresponding functions
> in domain0 kernel to finish the task.
>
> On Sat, Jul 11, 2009 at 11:36 PM, Samuel Thibault
> <samuel.thibault@ens-lyon.org <mailto:samuel.thibault@ens-lyon.org>>
> wrote:
>
> Hello,
>
> You may want to have a look at fsfront/fsback.
>
> Samuel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Question: How to write a file in domain 0?
2009-07-12 12:23 ` Zhao Lin
2009-07-12 14:21 ` Hui Kang
@ 2009-07-12 14:59 ` Samuel Thibault
1 sibling, 0 replies; 6+ messages in thread
From: Samuel Thibault @ 2009-07-12 14:59 UTC (permalink / raw)
To: Zhao Lin; +Cc: xen-devel
Zhao Lin, le Sun 12 Jul 2009 08:23:47 -0400, a écrit :
> thanks for reply.. but i think i might need to pass the data to domain0 through
> shared memory and then called corresponding functions in domain0 kernel to
> finish the task.
That's precisely what fsback/fsfront does.
Samuel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-07-12 14:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 15:42 Question: How to write a file in domain 0? Zhao Lin
2009-07-12 3:36 ` Samuel Thibault
2009-07-12 12:23 ` Zhao Lin
2009-07-12 14:21 ` Hui Kang
2009-07-12 14:59 ` Samuel Thibault
-- strict thread matches above, loose matches on Subject: below --
2009-06-30 19:16 Zhao Lin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.