Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5800257ybg; Tue, 22 Oct 2019 08:33:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlc3bBqnAImi2IVMMWqKTz/WLs32J1rG6MKLm3FoNp8+9nZxZSj3PgSzna1Ycv9TXmMi3n X-Received: by 2002:a05:6402:643:: with SMTP id u3mr14532790edx.60.1571758400302; Tue, 22 Oct 2019 08:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571758400; cv=none; d=google.com; s=arc-20160816; b=fk6dg1dsMlTOtDWcu0LUqLVi3zMcqVGe9JhjuSVe+FBJKfWuOR+xpoKVO3kR5SDxJq VsJ1414DKzC3Jq5e9wPhiJ0h6M5do54mJDk9QMhu5C5Y/+XifQlRFAAbH1zRTdrm/u2v HcqjXtTEAx8BWDIS488vL1SxD3QFOIIf5kBtqZ656rv11xNx3fhfvGEboA97MSxfd+Te veM+SdwESYLeuWgMQRHD3OQuT6GUq+5F9ZenlTE4B0PRp8RDGl+VvesMUr/Uu71i+UbW MyYFFWN168lh+yyq431mCf8uyyBmy0certJHWPVKK35FMKq3jAtdV1peQdOTyNs52OgL GAqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WEsstjL+927k0W9vkkctJFIzvZ1Hzz2SfZi16ucZgXQ=; b=0nO1SC+2xl70sl7kPYV08/cvckx78L7qUxrWHh4cSCT+NkcaxLm/re9nHtT7hR1S0w XflFgsV1Ox71pNv/O/kZS3ghzZ0ZbPijP+o1MV7XTS+XdqN+uDYAeEn3ZNy7q2AK2gpP 1CnNbGsa3WXITP87Wqago7oikl2x96vJS+LabmNiUlWOeaQbo9GPFbleRGGa5yKyOOwM 06PPmcihvIuOuOV3w4HrMWVuA9MJf99s2Q5UtvLIRCxalsy4IbSnGdzMuf4CdPnFwB9y +SITsFiLts8Fo0CuCKMPIHRtYEGqOhUo75a/v5hoQk0UyH+ki6uJ0GmXHDynx9sZJlR5 dx3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DXOYKsYK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si12689306edc.279.2019.10.22.08.32.56; Tue, 22 Oct 2019 08:33:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DXOYKsYK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388481AbfJVMPt (ORCPT + 99 others); Tue, 22 Oct 2019 08:15:49 -0400 Received: from mail.skyhub.de ([5.9.137.197]:56542 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388011AbfJVMPt (ORCPT ); Tue, 22 Oct 2019 08:15:49 -0400 Received: from zn.tnic (p200300EC2F0D77000D5BF9E7EE486C9A.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:7700:d5b:f9e7:ee48:6c9a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 39BE61EC0A85; Tue, 22 Oct 2019 14:15:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1571746547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=WEsstjL+927k0W9vkkctJFIzvZ1Hzz2SfZi16ucZgXQ=; b=DXOYKsYKz65K7naianpJguPN8bAtA8ZQLKscfbWcVT9zKFfJQLzuTKSZ8W5MVroWHnQIT3 jH8iFo4FxzRuexKN/2cuYJQAGXTWbTWejkZciq8YgNCgKn/gQu3biRsfHqCev9Oze0fB2S 5mBJyZLAkdc1QTmQj0E2tEfLFac2bpQ= Date: Tue, 22 Oct 2019 14:15:41 +0200 From: Borislav Petkov To: Lianbo Jiang Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, bhe@redhat.com, dyoung@redhat.com, jgross@suse.com, dhowells@redhat.com, Thomas.Lendacky@amd.com, ebiederm@xmission.com, vgoyal@redhat.com, kexec@lists.infradead.org Subject: Re: [PATCH 3/3 v4] x86/kdump: clean up all the code related to the backup region Message-ID: <20191022121541.GC31700@zn.tnic> References: <20191017094347.20327-1-lijiang@redhat.com> <20191017094347.20327-4-lijiang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191017094347.20327-4-lijiang@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 05:43:47PM +0800, Lianbo Jiang wrote: > When the crashkernel kernel command line option is specified, the > low 1MiB memory will always be reserved, which makes that the memory > allocated later won't fall into the low 1MiB area, thereby, it's not > necessary to create a backup region and also no need to copy the first > 640k content to a backup region. > > Currently, the code related to the backup region can be safely removed, > so lets clean up. > > Signed-off-by: Lianbo Jiang > --- > arch/x86/include/asm/kexec.h | 10 ---- > arch/x86/include/asm/purgatory.h | 10 ---- > arch/x86/kernel/crash.c | 87 ++++-------------------------- > arch/x86/kernel/machine_kexec_64.c | 47 ---------------- > arch/x86/purgatory/purgatory.c | 19 ------- > 5 files changed, 11 insertions(+), 162 deletions(-) That's a diffstat one cannot object to nowadays. :) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette