From: "Steven Y. Ko" Subject: Trying to understand HVM booting Date: Tue, 17 Apr 2007 11:45:44 -0500 Message-ID: <5fa100fd0704170945q2466dc35s28d88a1e63efb559@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline 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 Hello, I'm trying to understand how HVM booting works. By my limited understanding of the Xen code, it seems that a new domain is scheduled but paused (or is it paused?) by domain_create() in xen/common/domain.c. Then xc_hvm_build() in tools/libxc/xc_hvm_build.c loads hvmloader and calls a hypercall with XEN_DOMCTL_setvcpucontext. It looks like, when executing this hypercall, domain_unpause() is called (in xen/common/domctl.c) and it starts the execution of hvmloader. Is this correct? My understanding is very limited, and it would be great if someone can point out some important pieces of code so I can look into it. Also, I'm looking at hvmloader, and wondering where it actually starts loading the new HVM DomU kernel. Specifically, I wonder where in the code it reads the disk to load the kernel. Can anyone give me some pointers? Thanks! - Steve