From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH 12/12] EFI: Runtime services virtual mapping Date: Tue, 22 Oct 2013 13:18:57 +0200 Message-ID: <20131022111857.GA10660@nazgul.tnic> References: <20131011074144.GA18719@pd.tnic> <20131012075443.GD7550@dhcp-16-126.nay.redhat.com> <20131012101308.GI12321@console-pimps.org> <20131012103054.GA13739@pd.tnic> <20131013031126.GB1914@darkstar.nay.redhat.com> <20131013092521.GA22866@pd.tnic> <20131014155851.GJ4009@pd.tnic> <20131021124739.GA4515@dhcp-16-126.nay.redhat.com> <20131021133741.GA5716@nazgul.tnic> <20131021150426.GB4515@dhcp-16-126.nay.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20131021150426.GB4515-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dave Young Cc: Matt Fleming , X86 ML , LKML , Borislav Petkov , Matthew Garrett , "H. Peter Anvin" , James Bottomley , Vivek Goyal , linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, fwts-devel-nLRlyDuq1AZFpShjVBNYrg@public.gmane.org List-Id: linux-efi@vger.kernel.org On Mon, Oct 21, 2013 at 11:04:26PM +0800, Dave Young wrote: > > You need this to map the runtime regions in the kexec kernel, right? > > Please write that in the commit message. > > Yes, will do Ok, but but, why doesn't the normal code path in efi_enter_virtual_mode work anymore? I mean, why do you need another function instead of doing what you did previously: if (!kexec) phys_efi_set_virtual_address_map(...) The path up to here does the mapping already anyway so you only need to do the mapping in the kexec kernel and skip set set_virtual_map thing. Thanks.