From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: How to determine memory size in HVM Date: Wed, 10 Jun 2009 16:07:15 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 10/06/2009 12:39, "James Harper" wrote: >> Yes, that's the framebuffer. It is variable size, in principle, > though. I'm >> not sure you can do better than read XENMEM_current_reservation and >> memory/target at driver startup time, and keep the delta between them >> constant. > > There is a XENMEM_maximum_reservation, which I think makes it 8MB > exactly instead of 8060KB (7.xxxMB). Would I be better off using that as > a comparison? I don't think you should depend on that. Perhaps just having XENMEM_current_reservation track memory/target would be fine. I'm not sure if it will make e.g. The memory values returned by 'xm list' incorrect. We might have to provide more info to you via xenstore to do the 100% right thing here. -- Keir