* How does domain0 export information to guest through xenstore
@ 2010-08-09 0:31 胡少龙
2010-08-09 4:40 ` Fajar A. Nugraha
0 siblings, 1 reply; 2+ messages in thread
From: 胡少龙 @ 2010-08-09 0:31 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 538 bytes --]
Hi,
I am tring to write xenstore some information ,so that a guest can read, if i simply xenstore-write /foo "123" in domain 0, guest have not the permission to read this ,and guest domain number are dynamic, so i can not write a program to write /local/domain/X, which X is the domain id i want to export information to, can i ?
So, is there a path (a static path,without domain number)that i write to in domain 0, and guests have the permission to read ? Or, some other solution? Thanks.
Hu Shaolong
[-- Attachment #1.2: Type: text/html, Size: 768 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] 2+ messages in thread
* Re: How does domain0 export information to guest through xenstore
2010-08-09 0:31 How does domain0 export information to guest through xenstore 胡少龙
@ 2010-08-09 4:40 ` Fajar A. Nugraha
0 siblings, 0 replies; 2+ messages in thread
From: Fajar A. Nugraha @ 2010-08-09 4:40 UTC (permalink / raw)
To: 胡少龙; +Cc: xen-devel
On Mon, Aug 9, 2010 at 7:31 AM, 胡少龙 <sunofblack@yahoo.cn> wrote:
>
> Hi,
> I am tring to write xenstore some information ,so that a guest can read, if i simply xenstore-write /foo "123" in domain 0, guest have not the permission to read this ,and guest domain number are dynamic, so i can not write a program to write /local/domain/X, which X is the domain id i want to export information to, can i ?
> So, is there a path (a static path,without domain number)that i write to in domain 0, and guests have the permission to read ?
You could make use of virsh to convert domU name to id. Something like this:
On dom0:
# virsh domid domUname
41
# DOMU_ID=`virsh domid domUname`
# xenstore-write /local/domain/${DOMU_ID}/my-data "test-data"
# xenstore-read /local/domain/${DOMU_ID}/my-data
test-data
on domU:
# xenstore-read my-data
test-data
--
Fajar
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-09 4:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09 0:31 How does domain0 export information to guest through xenstore 胡少龙
2010-08-09 4:40 ` Fajar A. Nugraha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).