From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by kanga.kvack.org (Postfix) with ESMTP id 3E62B6B0038 for ; Tue, 29 Sep 2015 04:44:27 -0400 (EDT) Received: by wicge5 with SMTP id ge5so139586299wic.0 for ; Tue, 29 Sep 2015 01:44:26 -0700 (PDT) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com. [2a00:1450:400c:c05::22a]) by mx.google.com with ESMTPS id h6si27886931wib.97.2015.09.29.01.44.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2015 01:44:26 -0700 (PDT) Received: by wicgb1 with SMTP id gb1so138326127wic.1 for ; Tue, 29 Sep 2015 01:44:26 -0700 (PDT) Date: Tue, 29 Sep 2015 10:44:22 +0200 From: Ingo Molnar Subject: Re: [PATCH 06/11] x86/virt/guest/xen: Remove use of pgd_list from the Xen guest code Message-ID: <20150929084422.GB332@gmail.com> References: <1442903021-3893-1-git-send-email-mingo@kernel.org> <1442903021-3893-7-git-send-email-mingo@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: Linux Kernel Mailing List , linux-mm , Andy Lutomirski , Andrew Morton , Denys Vlasenko , Brian Gerst , Peter Zijlstra , Borislav Petkov , "H. Peter Anvin" , Oleg Nesterov , Waiman Long , Thomas Gleixner * Linus Torvalds wrote: > On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar wrote: > > xen_mm_pin_all()/unpin_all() are used to implement full guest instance > > suspend/restore. It's a stop-all method that needs to iterate through > > all allocated pgds in the system to fix them up for Xen's use. > > And _this_ is why I'd reall ylike that "for_each_mm()" helper. > > Yeah, yeah, maybe it would require syntax like > > for_each_mm (tsk, mm) { > ... > } end_for_each_mm(mm); > > to do variable allocation things or cleanups (ie "end_for_each_mm()" might drop > the task lock etc), but wouldn't that still be better than this complex > boilerplate thing? Yeah, agreed absolutely. Thanks, Ingo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org