Initial memory allocation for adomain (clarification) - newbie
Hello,
I had read "Xen and the Art of Virtualization" doc from SOSP 2003. I am also learning the code.
Natuarally, there were changes from that doc.
However , I want to clarify one point:
In section 3.3.4 of this doc , "Physical memory", it says:
"The initial memory allocation, or reservation, for each domain is specified at the time of its creation; memory is thus statically partitioned between domains, providing strong isolation."
In domain.c , we have:
struct domain *do_createdomain(domid_t dom_id, unsigned int cpu);
Now I do not see here any specified paramter denoting initial memory allocation for the domain. And as I understand, creation of the domain is done by this method, do_createdomain().
Am I missing something ?
Regards,
Sting
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Quoted 5 lines
Now I do not see here any specified paramter denoting initial memory allocation for the domain. And as I understand, creation of the domain is done by this method,
do_createdomain().Am I missing something ?
Domain creation is more involved than just calling creatdomain(). That allocates a domain structure within Xen, which the user-space tools then populate with RAM, load a kernel image, etc.
See xc_domain_create() in tools/libxc/xc_domain.c for some of the details (inclduing how RAM is added to a new domain).
-- Keir