From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH] set pv guest default video_memkb to 0 Date: Thu, 20 Nov 2014 15:29:51 +0000 Message-ID: <1416497391.14429.23.camel@citrix.com> References: <1416302762.17982.1.camel@citrix.com> <1416344228-24164-1-git-send-email-zhigang.x.wang@oracle.com> <20141119210845.GF20440@laptop.dumpdata.com> <20141119212434.GB27349@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XrTgE-0003Xy-4Q for xen-devel@lists.xenproject.org; Thu, 20 Nov 2014 15:29:58 +0000 In-Reply-To: <20141119212434.GB27349@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: xen-devel@lists.xenproject.org, Zhigang Wang , ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2014-11-19 at 21:24 +0000, Wei Liu wrote: > On Wed, Nov 19, 2014 at 04:08:46PM -0500, Konrad Rzeszutek Wilk wrote: > > On Tue, Nov 18, 2014 at 03:57:08PM -0500, Zhigang Wang wrote: > > > Before this patch, pv guest video_memkb is -1, which is an invalid value. > > > And it will cause the xenstore 'memory/targe' calculation wrong: > > > > > > memory/target = info->target_memkb - info->video_memkb > > > > CC-ing the maintainers. > > > > Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4? > > > > I don't think this is a regression, it has been broken for quite a > while. I think so to. On the other hand its a pretty clear bug to use video_memkb == -1 and we've seen that it causes real issues. The fix is also fairly obvious. I'm inclined towards suggesting we fix this in 4.5. Ian.