From: "Jan Beulich" Subject: Re: [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset Date: Thu, 28 May 2015 16:02:45 +0100 Message-ID: <55674A35020000780007EA93@mail.emea.novell.com> References: <1432740346-7887-1-git-send-email-vkuznets@redhat.com> <1432740346-7887-5-git-send-email-vkuznets@redhat.com> <20150528100642.GB24442@deinos.phlegethon.org> <87h9qwq5kf.fsf@vitty.brq.redhat.com> <20150528125237.GD24442@deinos.phlegethon.org> <878uc8q21s.fsf@vitty.brq.redhat.com> <20150528133739.GA40491@deinos.phlegethon.org><20150528133739.GA40491@deinos.phlegethon.org> (Tim Deegan's message of "Thu, 28 May 2015 14:37:39 +0100") <87zj4ooljz.fsf@vitty.brq.redhat.com> 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 1YxzKf-0000uM-T4 for xen-devel@lists.xenproject.org; Thu, 28 May 2015 15:02:53 +0000 In-Reply-To: <87zj4ooljz.fsf@vitty.brq.redhat.com> 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: Vitaly Kuznetsov Cc: Olaf Hering , Wei Liu , Ian Campbell , Stefano Stabellini , Andrew Cooper , Julien Grall , Ian Jackson , Andrew Jones , Tim Deegan , David Vrabel , xen-devel@lists.xenproject.org, Daniel De Graaf , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 28.05.15 at 15:53, wrote: > Tim Deegan writes: >> BTW having looked at how messy this is ending up, and how it's still >> incomplete, I'd agree with Jan that resetting the domain state might >> be a better approach. > > Even with the 'reset-everything' approach the function from this patch > will still be required in some form as we'll still have to walk the p2m > and each individual page checking it's count_info and replacing in case > of need. At the same time we'll have lots of other hypervisor-related > implications (tearing down everything) so I seriously doubt it's going > to end up less messy (toolstack-related changes might go away though). That would remain to be seen. I'm particularly unconvinced that iterating over all pages an copying is going to be needed: Iirc it was only grants mapped by another domain that we really need to hunt down, and we should be able to do that without iterating over the whole GFN space of the domain (or all of its assigned pages). Jan