From: "Jan Beulich" Subject: Re: [PATCH RFC] xen: allow guest_remove_page to remove p2m_mmio_direct pages Date: Thu, 19 Jun 2014 16:51:51 +0100 Message-ID: <53A3152702000078000B6AEF@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> 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 1Wxed0-0002EU-Up for xen-devel@lists.xenproject.org; Thu, 19 Jun 2014 15:51:55 +0000 In-Reply-To: <20140619110822.GA87987@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 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. IOW, no matter whether that part is there or not, there are problems, leading us back to needing a proper solution rather than a hack like this. Jan