Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757891AbcDEJN3 (ORCPT ); Tue, 5 Apr 2016 05:13:29 -0400 Received: from e06smtp05.uk.ibm.com ([195.75.94.101]:55031 "EHLO e06smtp05.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757776AbcDEJN0 (ORCPT ); Tue, 5 Apr 2016 05:13:26 -0400 X-IBM-Helo: d06dlp01.portsmouth.uk.ibm.com X-IBM-MailFrom: holzheu@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Date: Tue, 5 Apr 2016 11:13:16 +0200 From: Michael Holzheu To: Xunlei Pang Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, akpm@linux-foundation.org, ebiederm@xmission.com, Minfei Huang , Vivek Goyal , Baoquan He , Heiko Carstens Subject: Re: [PATCH v2] s390/kexec: Consolidate crash_map/unmap_reserved_pages() and arch_kexec_protect(unprotect)_crashkres() Message-ID: <20160405111316.2fa4772c@holzheu> In-Reply-To: <1459840199-19920-1-git-send-email-xlpang@redhat.com> References: <1459840199-19920-1-git-send-email-xlpang@redhat.com> Organization: IBM X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16040509-0021-0000-0000-0000124B12EC Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 917 Lines: 23 Hello Xunlei, On Tue, 5 Apr 2016 15:09:59 +0800 Xunlei Pang wrote: > Commit 3f625002581b ("kexec: introduce a protection mechanism > for the crashkernel reserved memory") is a similar mechanism > for protecting the crash kernel reserved memory to previous > crash_map/unmap_reserved_pages() implementation, the new one > is more generic in name and cleaner in code (besides, some > arch may not be allowed to unmap the pgtable). > > Therefore, this patch consolidates them, and uses the new > arch_kexec_protect(unprotect)_crashkres() to replace former > crash_map/unmap_reserved_pages() which by now has been only > used by S390. > > The consolidation work needs the crash memory to be mapped > initially, so get rid of S390 crash kernel memblock removal > in reserve_crashkernel(). If you fix this comment, I am fine with your patch. Acked-by: Michael Holzheu