From: Ian Campbell Subject: Re: [PATCH V2 3/5] libxl: Specify the target ram size to Qemu (new) when calling it Date: Mon, 13 Dec 2010 14:32:10 +0000 Message-ID: <1292250730.13966.5157.camel@zakaz.uk.xensource.com> References: <1292246143-31045-1-git-send-email-anthony.perard@citrix.com> <1292246143-31045-4-git-send-email-anthony.perard@citrix.com> <1292248469.13966.5147.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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: Anthony Perard Cc: Xen Devel List-Id: xen-devel@lists.xenproject.org On Mon, 2010-12-13 at 14:14 +0000, Anthony Perard wrote: > On Mon, 13 Dec 2010, Ian Campbell wrote: > > > On Mon, 2010-12-13 at 13:15 +0000, anthony.perard@citrix.com wrote: > > > > > > + dm_info->target_ram = b_info->target_memkb / 1024; > > > dm_info->videoram = b_info->video_memkb / 1024; > > > > Both of these end up rounding down, is that desirable? > > They are both multiplied by 1024 from the config file before they are > stored in the b_info->*_memkb variables. So have them rounding down or > up will not change anything. Fair enough. Makes me wonder if b_info->foo_memkb has the correct units. Also since libxl is supposed to be usable by other than xl relying on particular subtle behaviour like this seems unwise. This patch does make things any worse though I guess. Ian.