WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] question about xc_get_pfn_list()

To: tgh <tianguanhua@xxxxxxxxxx>
Subject: Re: [Xen-devel] question about xc_get_pfn_list()
From: Daniel Stodden <stodden@xxxxxxxxxx>
Date: 2007年3月16日 11:36:03 +0100
Cc: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2007年3月16日 03:35:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45FA132B.3030603@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <10EA09EFD8728347A513008B6B0DA77A0118E9C4@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <45F61B65.7020602@xxxxxxxxxx> <45FA132B.3030603@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2007年03月16日 at 11:46 +0800, tgh wrote:
> hi
> I try to understand the code of VMcreate
not sure what VMcreate means. are you looking at the xend code?
> where does the xc_get_pfn_list( ) further go to? I am confused
> does xc_get_pfn_list finally go to the function arch_do_domctl() or not?
> I am lost in the xc_get_pfn_list()
huh? unless you're not looking at x86_32/64, it's carrying quite a
blatant call to do_domct() right in the middle :). [tools/libxc/xc_private.c]
this goes to arch_do_domctl() in xen, with cmd DOMCTL_getmemlist.
> and the function of xc_get_pfn_list() is to allocate the phymemframe 
> to the VM which is going to be booted up ,am I right?
no. it receives the machine frame numbers (mfns) of all 
the pages allocated by the domain. as an array, which in turn may span 
several pages, depending on the vm size. 
the number of pages needed to carry the entire mfn list 
can be determined from xc_domain_getinfo().
> I am confused about it
no need to despair. get yourself a good utility for browsing code and
following the function definitions. it will get better, quickly. :)
regards,
daniel
-- 
Daniel Stodden
LRR - Lehrstuhl für Rechnertechnik und Rechnerorganisation
Institut für Informatik der TU München D-85748 Garching
http://www.lrr.in.tum.de/~stodden mailto:stodden@xxxxxxxxxx
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Re: [patch 21/26] Xen-paravirt_ops: Use the hvc console infrastructure for Xen console , Keir Fraser
Next by Date: Re: [Xen-devel] xenperf and mini-os on xen 3.0.4_1 (2.6.16.33) , Atsushi SAKAI
Previous by Thread: [Xen-devel] question about xc_get_pfn_list() , tgh
Next by Thread: Re: [Xen-devel] question about xc_get_pfn_list() , tgh
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /