From patchwork Tue Apr 16 09:13:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 1086150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44k07m4D5qz9s4V for ; Tue, 16 Apr 2019 19:15:00 +1000 (AEST) Received: from localhost ([127.0.0.1]:33544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGKB7-0004cy-R1 for incoming@patchwork.ozlabs.org; Tue, 16 Apr 2019 05:14:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGKA9-0004Py-Ib for qemu-devel@nongnu.org; Tue, 16 Apr 2019 05:13:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGKA8-0004V3-P0 for qemu-devel@nongnu.org; Tue, 16 Apr 2019 05:13:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54112) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hGKA4-0004SG-VE; Tue, 16 Apr 2019 05:13:53 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 227F53086211; Tue, 16 Apr 2019 09:13:52 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-116.ams2.redhat.com [10.36.116.116]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8D04F19C78; Tue, 16 Apr 2019 09:13:49 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id 13CF71138648; Tue, 16 Apr 2019 11:13:48 +0200 (CEST) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Tue, 16 Apr 2019 11:13:45 +0200 Message-Id: <20190416091348.26075-1-armbru@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Tue, 16 Apr 2019 09:13:52 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 0/3] hw/arm/virt: Support firmware configuration with -blockdev X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, peter.maydell@linaro.org, qemu-block@nongnu.org, philmd@redhat.com, mreitz@redhat.com, qemu-arm@nongnu.org, lersek@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" László asked for feature parity with the PC machine types. v2: * PATCH 1: Split off PATCH 2 [László] * PATCH 2: Factor out the loop body, not the whole loop * PATCH 3: Rebase on previous change More detailed commit message [László] Markus Armbruster (3): pc: Rearrange pc_system_firmware_init()'s legacy -drive loop pflash_cfi01: New pflash_cfi01_legacy_drive() hw/arm/virt: Support firmware configuration with -blockdev hw/arm/virt.c | 198 +++++++++++++++++++++++++-------------- hw/block/pflash_cfi01.c | 28 ++++++ hw/i386/pc_sysfw.c | 18 +--- include/hw/arm/virt.h | 2 + include/hw/block/flash.h | 1 + 5 files changed, 161 insertions(+), 86 deletions(-)