Received: by 10.213.65.68 with SMTP id h4csp681441imn; Tue, 13 Mar 2018 18:02:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELu+TzM4mQC1mmnnzw5lCucVhv28eU2Da58nRrW9UUV3LQX1Fi0a3Pef64BuNX3aXeuaPi5r X-Received: by 10.99.97.203 with SMTP id v194mr2034213pgb.373.1520989326537; Tue, 13 Mar 2018 18:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520989326; cv=none; d=google.com; s=arc-20160816; b=nUlslG/KOfQE3aRzoODBLZYpIZ+lgl3FPYwoaToNYqqD62BFgt6oo/6TwsEtFnP6Da Md9knAKgUJwO6meffAWuLfX+3ChHdpDSH1h6Z0+8xX8ba8YAW8Rb2hX41RPant89YHEW JR8+xXqPdditzOmZzXDK4nY2BGXHq11UyRIMkzFREUcTvoaBHxmhzUjiMuesJnPu5tHv A2BDGXj7o9a3W8EvfOOb2odd1Zmc9TNLRcXz+JfFns5sFuYGeWLq/DjOPIemcOEtmbiD cpd4nWwNj5DHRfz+n8gHRTY9of7uBsqAExWdyVSzAH213ngrBSSzW5GxHx1HoiWIO63K qirQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:date:in-reply-to :subject:cc:to:from:user-agent:references:arc-authentication-results; bh=D3F9NhOD1nMOriTgbR6XiAdfRNPrwloYqeCz2MeaH/A=; b=0zZt3KhyDAB+pT09Hb7x7WKHaWlaBaOorlTerkA/VcKRTVrx1K1nQ2hULsUQ97ACzl ApHUfSaOZoUZLw9UD6fBnTUZkYaIAI7Kgg2VmFVxWmn87BsX0tZQ3XYaTPPF+nqrntK6 zDBm6qkhI686nRi1c+wB3/HqR1+gdYTlJ8XQunN0rwtkdNFeY3cnknaSshjblmCbvxCV cVdTDE/oOKYi+3N333ohxA2Rzn9RvakeJAGwp+umJEnbkIXXNzJdLcWtpdyZUsJPp9Wg dzbzFQDligVVqTNxsjbRunaTgoiP1RpBlbskZRL66MmDUrLOvqU43Jxc5pJ3w4zqvosR cNHQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t63si961002pgt.745.2018.03.13.18.01.52; Tue, 13 Mar 2018 18:02:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932937AbeCNBAy (ORCPT + 99 others); Tue, 13 Mar 2018 21:00:54 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35126 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932634AbeCNBAx (ORCPT ); Tue, 13 Mar 2018 21:00:53 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2E0xtYP089259 for ; Tue, 13 Mar 2018 21:00:52 -0400 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gpn8pgh73-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 13 Mar 2018 21:00:52 -0400 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Mar 2018 19:00:51 -0600 Received: from b03cxnp08025.gho.boulder.ibm.com (9.17.130.17) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 Mar 2018 19:00:47 -0600 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2E10lvV13500762; Tue, 13 Mar 2018 18:00:47 -0700 Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6B97FBE03E; Tue, 13 Mar 2018 19:00:47 -0600 (MDT) Received: from morokweng.localdomain (unknown [9.85.136.62]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTPS id BA979BE038; Tue, 13 Mar 2018 19:00:44 -0600 (MDT) References: <20180306102303.9063-1-takahiro.akashi@linaro.org> <20180306102303.9063-3-takahiro.akashi@linaro.org> <20180308011303.GB2600@dhcp-128-65.nay.redhat.com> User-agent: mu4e 1.0; emacs 25.3.1 From: Thiago Jung Bauermann To: Dave Young Cc: AKASHI Takahiro , vgoyal@redhat.com, bhe@redhat.com, mpe@ellerman.id.au, prudo@linux.vnet.ibm.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH v2 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions In-reply-to: <20180308011303.GB2600@dhcp-128-65.nay.redhat.com> Date: Tue, 13 Mar 2018 22:00:39 -0300 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 18031401-0020-0000-0000-00000D9659A7 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008668; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01002682; UDB=6.00510218; IPR=6.00782011; MB=3.00020017; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-14 01:00:50 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031401-0021-0000-0000-0000607BF6E9 Message-Id: <87zi3b8o94.fsf@morokweng.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-13_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803140008 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dave Young writes: > On 03/06/18 at 07:22pm, AKASHI Takahiro wrote: >> As arch_kexec_kernel_image_{probe,load}(), >> arch_kimage_file_post_load_cleanup() and arch_kexec_kernel_verify_sig() >> are almost duplicated among architectures, they can be commonalized with >> an architecture-defined kexec_file_ops array. So let's factor them out. >> >> Signed-off-by: AKASHI Takahiro >> Cc: Dave Young >> Cc: Vivek Goyal >> Cc: Baoquan He >> Cc: Michael Ellerman >> Cc: Thiago Jung Bauermann >> --- >> arch/powerpc/include/asm/kexec.h | 2 +- >> arch/powerpc/kernel/kexec_elf_64.c | 2 +- >> arch/powerpc/kernel/machine_kexec_file_64.c | 39 ++----------------- >> arch/x86/include/asm/kexec-bzimage64.h | 2 +- >> arch/x86/kernel/kexec-bzimage64.c | 2 +- >> arch/x86/kernel/machine_kexec_64.c | 45 +--------------------- >> include/linux/kexec.h | 13 +++---- >> kernel/kexec_file.c | 60 +++++++++++++++++++++++++++-- >> 8 files changed, 71 insertions(+), 94 deletions(-) >> > > For this patch it also needs some review from powerpc people. FWIW: Reviewed-by: Thiago Jung Bauermann Also, tested on a ppc64le KVM guest: Tested-by: Thiago Jung Bauermann -- Thiago Jung Bauermann IBM Linux Technology Center