From: Keir Fraser Subject: Re: silly questions: struct start_info Date: Fri, 30 Sep 2005 17:33:43 +0100 Message-ID: References: <17213.17070.981758.653603@kitch0.watson.ibm.com> <17213.23937.577053.274012@kitch0.watson.ibm.com> <17213.25397.234426.232873@kitch0.watson.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <17213.25397.234426.232873@kitch0.watson.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jimi Xenidis Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 30 Sep 2005, at 17:09, Jimi Xenidis wrote: > KF> They are allocated from the domain's reservation, it's just that > they > KF> map themselves read-only. > > arch/x86/domain.c arch_do_createdomain 253 d->shared_info = > alloc_xenheap_page(); > > I assume this is done so Xen can access easily (without any xlate > issues). On PPC we don't have any such issues so allocating the > shared_info out of the domain seems more natural. > > It sounds like there is no objection to this strategy, correct? I think you will end up finding all sorts of assumptions in the tools that this page is not part of the domain's normal reservation. Unless you have a really good reason to allocate the page out of the normal reservation I would advise against it. I agree it would be the neater way if x86 didn't need to do it the other way. But that's not the case and, if it's not broken I don't think you should try to fix it. :-) -- Keir