From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965593AbdEOO1k (ORCPT ); Mon, 15 May 2017 10:27:40 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:32857 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964829AbdEOO1h (ORCPT ); Mon, 15 May 2017 10:27:37 -0400 Date: Mon, 15 May 2017 15:27:29 +0100 From: Matt Fleming To: Sai Praneeth Prakhya Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Ricardo Neri , Ard Biesheuvel , Ravi Shankar Subject: Re: [PATCH V2] x86/efi: Add EFI_PGT_DUMP support for x86_32, kexec Message-ID: <20170515142729.GE2935@codeblueprint.co.uk> References: <1494530433-19503-1-git-send-email-sai.praneeth.prakhya@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1494530433-19503-1-git-send-email-sai.praneeth.prakhya@intel.com> User-Agent: Mutt/1.5.24+41 (02bc14ed1569) (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 May, at 12:20:33PM, Sai Praneeth Prakhya wrote: > From: Sai Praneeth > > EFI_PGT_DUMP, as the name suggests dumps efi page tables to dmesg during > kernel boot. This feature is very useful while debugging page > faults/null pointer dereferences to efi related addresses. Presently, > this feature is limited only to x86_64, so let's extend it to other efi > configurations like kexec kernel, efi=old_map and to x86_32 as well. > This doesn't effect normal boot path because this config option should > be used only for debug purposes. > > Signed-off-by: Sai Praneeth Prakhya > Cc: Borislav Petkov > Cc: Ricardo Neri > Cc: Matt Fleming > Cc: Ard Biesheuvel > Cc: Ravi Shankar > > Changes since v1: > 1. Call efi_dump_pagetable() only once from efi_enter_virtual_mode() - > as suggested by Boris > > --- > arch/x86/platform/efi/efi.c | 3 ++- > arch/x86/platform/efi/efi_32.c | 9 ++++++++- > arch/x86/platform/efi/efi_64.c | 5 ++++- > 3 files changed, 14 insertions(+), 3 deletions(-) Thanks Sai, applied.