From patchwork Thu Jun 14 16:33:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 138588 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2341747lji; Thu, 14 Jun 2018 09:40:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2EvJvsScuuyRuTwN1g1UtyHV3fNvENIopgPA62oBBrWXQdM63rx0GQI1aNa1R76WhF2vQ X-Received: by 2002:aa7:d643:: with SMTP id v3-v6mr3247620edr.116.1528994410705; Thu, 14 Jun 2018 09:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528994410; cv=none; d=google.com; s=arc-20160816; b=to8DucUZ5LysS9ry925GBlHfSi//byZ1vWzDk6yk/wm4SzGiiv2gxx5PpM7V0lfqXM Nsj6JY0my9d7w7eiUimMvzOmoV+YKR4Rskmp0xHTBs3YHmHCiGuObKaSrfk2oD7rFLIg jyyB9Fi/CSr+xeNTV7BQ0tbYP22QIxY2PvIUtTPefR8UR6LQs8LSzWN8kee/Ax6Y5Cnd dyH7HjvAixpqKpbA79ZiLzbQpYiTC9ZgGQlHNx926w9Yyd3W0zWTZqQs4QcnEHnaMtKN mQOkriyb6BGV4Gwkv7/L6to6UO4BD+DH5js59v9tARJgB5aRd8Oxy5DixAkiZ33Cb5X6 xhug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :arc-authentication-results; bh=uAfx8Rl0ejHDTlay4SrF4c3u9hVDGY0cVHWTvNJ/qV4=; b=L60arUpYtppmGqq1rctq9B8/zZjYeBHI/HekeANRwnFvT6pllpnMDvO1fRG2V4ODFA lft/nMW07zCIlV3ITYdmqms4R1PSYlTiYzZwta4xsR3wWBvsClyBK1hxbZx4jL+SFwvG geDKpaVJe3R6H/KcdaO8LGG/52OTwbwP5Swn4lRwT1yhgiSXiEOY5qjrKIwMKHp7dY7T FoRkCz6V7Q88f/0PePHVMxGy57FOWF0D3SdcWi2C8Dsa9bMIdoy+lAihRkUCPbaaxXWd 8jtF3QVYH4syV71n5jV1JvDofWhq7VUleeyDhSrz0d/Nb0WfaDYtyGS3htLgI1U1FeLv +RfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id r26-v6si1785477edb.82.2018.06.14.09.40.06; Thu, 14 Jun 2018 09:40:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id E2A20C21E3A; Thu, 14 Jun 2018 16:35:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CDA5FC21ECF; Thu, 14 Jun 2018 16:33:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 680BDC21C2C; Thu, 14 Jun 2018 16:33:35 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 4F983C21CB6 for ; Thu, 14 Jun 2018 16:33:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id ACC73AEDD; Thu, 14 Jun 2018 16:33:34 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 14 Jun 2018 18:33:23 +0200 Message-Id: <20180614163334.46827-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Cc: Heinrich Schuchardt Subject: [U-Boot] [PATCH 00/11] sandbox: efi_loader support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch set augments Simon's patch set for efi_loader support in sandbox[1], but follows a different memory allocation scheme. Instead of keeping U-Boot (physical) addresses in the EFI memory map, this patch set makes the EFI memory map contain host virtual (virtual) addresses. That way most logic "just works" and all EFI interfaces automatically gain sandbox awareness. With this patch set in place, I can run a good chunk of the selftest suite as well as efi binaries compiled using gnu-efi. Alex [1] https://patchwork.ozlabs.org/project/uboot/list/?series=49832 Alexander Graf (7): efi_loader: Use compiler constants for image loader efi_loader: Use map_sysmem() in bootefi command efi.h: Do not use config options efi_loader: Allow SMBIOS tables in highmem sandbox: Map host memory for efi_loader efi_loader: Disable miniapps on sandbox efi_loader: Pass virtual address to fs_read() Heinrich Schuchardt (1): efi_loader: efi_allocate_pages is too restrictive Simon Glass (3): efi: sandbox: Add distroboot support efi: sandbox: Add relocation constants efi: sandbox: Enable EFI loader for sandbox arch/sandbox/cpu/cpu.c | 16 ++++++++++++++++ cmd/bootefi.c | 13 ++++++++----- include/config_distro_bootcmd.h | 13 +++++++++++++ include/efi.h | 17 ++++------------- lib/efi/Makefile | 4 ++-- lib/efi_loader/Kconfig | 2 +- lib/efi_loader/efi_file.c | 4 +++- lib/efi_loader/efi_image_loader.c | 12 ++++++------ lib/efi_loader/efi_memory.c | 2 +- lib/efi_loader/efi_runtime.c | 12 ++++++++++++ lib/efi_loader/efi_smbios.c | 11 +++++++++-- lib/efi_selftest/Makefile | 2 +- 12 files changed, 76 insertions(+), 32 deletions(-)