From: Daniel Kiper Subject: Re: [PATCHv1] xen/balloon: disable memory hotplug in PV guests Date: Mon, 9 Mar 2015 21:45:53 +0100 Message-ID: <20150309204553.GH27971@olila.local.net-space.pl> References: <1425910200-17541-1-git-send-email-david.vrabel@citrix.com> <54FDB7B8.7000305@oracle.com> <54FDB8A4.9020904@citrix.com> <54FDBB53.7070108@oracle.com> <54FDBCD2.8040807@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YV4Z4-0001Dy-Nn for xen-devel@lists.xenproject.org; Mon, 09 Mar 2015 20:46:14 +0000 Content-Disposition: inline In-Reply-To: <54FDBCD2.8040807@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: David Vrabel Cc: xen-devel@lists.xenproject.org, Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On Mon, Mar 09, 2015 at 03:31:30PM +0000, David Vrabel wrote: > On 09/03/15 15:25, Boris Ostrovsky wrote: > > On 03/09/2015 11:13 AM, David Vrabel wrote: > >> On 09/03/15 15:09, Boris Ostrovsky wrote: > >>> On 03/09/2015 10:10 AM, David Vrabel wrote: > >>>> Memory hotplug doesn't work with PV guests because: > >>>> > >>>> a) The p2m cannot be expanded to cover the new sections. > >>>> > >>>> b) add_memory() builds page tables for the new sections which means > >>>> the new pages must have valid p2m entries (or a BUG occurs). > >>> Is this due to recent p2m rework? > >> (a) is but (b) has always meant memory hotplug on PV was broken. > > > > I can see why (b) should probably have prevented it from working but I > > tried this on 4.4/3.17 and that seemed to work (it indeed does not > > function well on newer bits). > > I tried it on 3.10 (+ some other bits and pieces) and it was definitely > broken for reason (b). I had to refactor the balloon driver to populate Are you sure? Could you provide more info? > the sections before calling add_memory() before it would work. But this I am not sure what do you mean by that. > can't be done now because of (a). Could you enlighten me why p2m was reworked? Daniel