From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: Runtime services support for Xen on ARM Date: Thu, 12 Nov 2015 04:04:45 -0700 Message-ID: <5644805D02000078000B42B2@prv-mh.provo.novell.com> References: <5641D5F0.5080401@huawei.com> <1447158988.9407.30.camel@citrix.com> <5644569A.80202@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZwpgR-0003VH-2U for xen-devel@lists.xenproject.org; Thu, 12 Nov 2015 11:04:53 +0000 In-Reply-To: <5644569A.80202@huawei.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Shannon Zhao Cc: xen-devel , Shannon Zhao , Ian Campbell , Christoffer Dall , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org >>> On 12.11.15 at 10:06, wrote: > Today I try the way you suggested. Set USE_SET_VIRTUAL_ADDRESS_MAP on > ARM and make a fake efi_rs_enter() and efi_rs_leave(). But when calling > efi_init_memory, it fails with below log: You can't just #define that constant and assume things will work: This code is there so far only for documentation purposes. You need to go look what parts of it may have bitrotted. > It fails at below line: > > efi_rs->SetVirtualAddressMap(efi_memmap_size, efi_mdesc_size, > mdesc_ver, efi_memmap); Quite obviously because efi_exit_boot() now sets efi_bs to NULL. Jan