From: Mukesh Rathor Subject: Re: [PATCH v2] xen: prevent PVH Dom0 from having pages with more than one ref Date: Fri, 13 Jun 2014 18:11:07 -0700 Message-ID: <20140613181107.4521c302@mantra.us.oracle.com> References: <1402659835-63314-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WvcVB-00062X-Ew for xen-devel@lists.xenproject.org; Sat, 14 Jun 2014 01:11:25 +0000 In-Reply-To: <1402659835-63314-1-git-send-email-roger.pau@citrix.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: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Fri, 13 Jun 2014 13:43:55 +0200 Roger Pau Monne wrote: > With the current implementation of the Dom0 domain builder a PVH Dom0 > ends up with pages that have 2 references, which means they are not > freed when Dom0 balloons memory down. This leads to those pages > not being freed in guest_remove_page, so they are leaked and the > memory accounting between Xen and Dom0 differs, because Dom0 OS > actually thinks they are freed, but d->tot_pages is not decreased. Ah, right. good catch. I agree with the changes... thanks, Mukesh