From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei LIU Subject: When does domain builder allocate/bound DomU's XenStore port? Date: Tue, 2 Mar 2010 15:45:18 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, Xen experts As I discover in Mini-OS, the XenStore port is allocated by Dom0's domain builder. All that a DomU has to do is binding that port in shared_info page to its handler, and everything works. So I'm quite interested in how the domain builder in Dom0 allocates a XenStore port for DomU. In the book The Definitive Guide to The Xen Hypervisor, it says that XenStore event channel is bound by domain builder at build time. I looked around for related code, but the code base seems to be too large - both userland and kernel space. I've tried looking at "tools/python" as well as "tools/libxc", but I didn't get the point. So, what's the procedure and, which piece of code should I pay attention to? Thanks in advanced! P.S. we use Xen 3.3.0 stable code. Wei Liu 2010-03-02