From: "Jan Beulich" Subject: Re: [PATCH RFC] xen: allow guest_remove_page to remove p2m_mmio_direct pages Date: Thu, 19 Jun 2014 17:12:28 +0100 Message-ID: <53A319FC02000078000B6B06@mail.emea.novell.com> 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> <20140619160801.GD87916@deinos.phlegethon.org> 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 1Wxewx-0003IL-Al for xen-devel@lists.xenproject.org; Thu, 19 Jun 2014 16:12:31 +0000 In-Reply-To: <20140619160801.GD87916@deinos.phlegethon.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: tim@xen.org 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 >>> Tim Deegan 06/19/14 6:08 PM >>> >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. That's true - I forgot for a moment that the patch is just about suppressing a warning message, not about altering functionality as such. Jan