From: David Edmondson Subject: Re: Can PV Guest use xenbus_printf to write information to xenstore? Date: Thu, 31 Jul 2008 17:22:14 +0100 Message-ID: <20080731162214.GA20876@apfelstrudel.hh.sledj.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: jian zhang Cc: xen-devel List-Id: xen-devel@lists.xenproject.org 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.