jian zhang
2008-Jul-31 15:17 UTC
[Xen-devel] 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 Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
David Edmondson
2008-Jul-31 16:22 UTC
Re: [Xen-devel] Can PV Guest use xenbus_printf to write information to xenstore?
On Thu, Jul 31, 2008 at 11:17:18PM +0800, jian zhang wrote:> 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.> 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. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel