Skip to contentSkip to conversation

Can PV Guest use xenbus_printf to write information to xenstore?

DISCUSSION jian zhang 2 participants 2 messages Jul 31, 2008

lore
Share & tools
lore

jian zhang

author
#0 lore raw

Hi :
As I want to know the information of the VMs that currently runing on the same physical machine, I'd like to get those VM's information from xenstore, such as macaddress. Indeed, what I want is IP address, so, if guest can write things to xenstore, I'd like it write its IP address into xenstore and let domain0 reads it directly.

So, can anybody tell me whether a PV guest can do this?
For a hvm guest I am sure it can not write things to xenstore as it is completely unware of xen's exisitence.

Thanks in advance for your help.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 7 lines · jian zhang

As I want to know the information of the VMs that currently runing on the same physical machine, I'd like to get those VM's information from xenstore, such as macaddress. Indeed, what I want is IP address, so, if guest can write things to xenstore, I'd like it write its IP address into xenstore and let domain0 reads it directly.

So, can anybody tell me whether a PV guest can do this?

Yes, we have some code which does this.

Quoted 2 lines

For a hvm guest I am sure it can not write things to xenstore as it is completely unware of xen's exisitence.

If your HVM guest has PV drivers, they must include some capability to modify xenstore.