Can PV Guest use xenbus_printf to write information to xenstore?
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
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.