From: Tim Deegan Subject: Re: [PATCH RFC] xen: allow guest_remove_page to remove p2m_mmio_direct pages Date: Thu, 19 Jun 2014 18:08:01 +0200 Message-ID: <20140619160801.GD87916@deinos.phlegethon.org> References: <1403091527-9017-1-git-send-email-roger.pau@citrix.com> <53A1B202020000780001B670@mail.emea.novell.com> <20140619110822.GA87987@deinos.phlegethon.org> <53A3152702000078000B6AEF@mail.emea.novell.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 1Wxesj-00039a-FR for xen-devel@lists.xenproject.org; Thu, 19 Jun 2014 16:08:09 +0000 Content-Disposition: inline In-Reply-To: <53A3152702000078000B6AEF@mail.emea.novell.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: Jan Beulich Cc: xen-devel@lists.xenproject.org, keir@xen.org, ian.jackson@eu.citrix.com, ian.campbell@citrix.com, roger.pau@citrix.com List-Id: xen-devel@lists.xenproject.org At 16:51 +0100 on 19 Jun (1403193111), Jan Beulich wrote: > >>> Tim Deegan 06/19/14 1:08 PM >>> > >At 14:36 +0100 on 18 Jun (1403098594), Jan Beulich wrote: > >> >>> On 18.06.14 at 13:38, wrote: > >> Finally, how is this same situation going to be handled for PVH driver > >> domains or disaggregated PVH control domains? The > >> is_hardware_domain() here seems too much of a special case too... > > > >Agreed -- that is_hardware_domain() should be removed. And with that > >removed, this patch has my ack. > > I'm inclined to nak it with that part removed: Without it, the guest can get its > P2M out of sync wrt qemu's view, which might end up being a security issue. The guest can already do that (and I don't see that as a secutity issue anyway, since we treat qemu as under guest control). This just suppresses a warning from attempting to free MMIO space. Tim.