From patchwork Fri Aug 29 04:42:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36268 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B048B2054F for ; Fri, 29 Aug 2014 04:43:03 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id le20sf5770992vcb.0 for ; Thu, 28 Aug 2014 21:43:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:references:in-reply-to:subject:precedence:reply-to :list-id:list-unsubscribe:list-archive:list-post:list-help :list-subscribe:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type; bh=4fIkbNdDzoByBCX7w/KRGePmRGxxOTfwHZsj+DiG10w=; b=VqjBnCZb8le2p7CMoQ2iXBzNXvYKh1Qgmh/S0QQeM+louM2KA1OHBuCuDKi4xo/IlE 7HpJ4Wb7V4m0uevBqXcABNmynGUDZy5W0FnUHgV9zXyt3hXjwIHZR8G+XDxy0xg7mFlg DgzEkkUbusueS3kXVbnxCltOxVr3BoFKzfGSZZtKyZAbsI9+euoZdA9sPtkDl8JZQRiN psX+44hfThLfITUTUfAwFEdnEeKX8pbvsdAW5iHKPAVKA0wQmEzI1LgJSWfmEq07hTnC 47i0aJU2r/dtLZMDas6ysbCOxC0ngzR2QoGKtM0dx8Z5o2Rwh9Yxjmd/+McbsY6YPVOy ZYzA== X-Gm-Message-State: ALoCoQkSB4ox6o+0jQ22J4kbwcNOZlBGmNCwWc0ngT0hSBz915yn9P/Kcam4QnmsVdgxJWTFqaRh X-Received: by 10.236.118.37 with SMTP id k25mr2739476yhh.1.1409287383402; Thu, 28 Aug 2014 21:43:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.6 with SMTP id q6ls893478qgd.82.gmail; Thu, 28 Aug 2014 21:43:03 -0700 (PDT) X-Received: by 10.221.44.69 with SMTP id uf5mr8277164vcb.4.1409287383324; Thu, 28 Aug 2014 21:43:03 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id sl18si5812146vdb.42.2014.08.28.21.43.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 21:43:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so1929681vcb.7 for ; Thu, 28 Aug 2014 21:43:03 -0700 (PDT) X-Received: by 10.52.97.233 with SMTP id ed9mr6940009vdb.16.1409287383210; Thu, 28 Aug 2014 21:43:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp336121vcb; Thu, 28 Aug 2014 21:43:01 -0700 (PDT) X-Received: by 10.42.100.6 with SMTP id y6mr9013731icn.28.1409287380909; Thu, 28 Aug 2014 21:43:00 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id p14si6298920igr.5.2014.08.28.21.43.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 28 Aug 2014 21:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XNE1G-000155-UD; Fri, 29 Aug 2014 04:42:38 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XNE1F-00014y-9o for edk2-devel@lists.sourceforge.net; Fri, 29 Aug 2014 04:42:37 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=lersek@redhat.com; helo=mx1.redhat.com; Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1XNE1D-0004tD-Pi for edk2-devel@lists.sourceforge.net; Fri, 29 Aug 2014 04:42:37 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7T4gNwa023607 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 29 Aug 2014 00:42:23 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-99.ams2.redhat.com [10.36.116.99]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7T4gK84019930; Fri, 29 Aug 2014 00:42:21 -0400 Message-ID: <540004AC.8090105@redhat.com> Date: Fri, 29 Aug 2014 06:42:20 +0200 From: Laszlo Ersek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Ard Biesheuvel , olivier.martin@arm.com, edk2-devel@lists.sourceforge.net, peter.maydell@linaro.org, christoffer.dall@linaro.org, drjones@redhat.com, ilias.biris@linaro.org, leif.lindholm@linaro.org References: <1409240449-12136-1-git-send-email-ard.biesheuvel@linaro.org> <53FFB87F.1030504@redhat.com> <53FFE37E.8000405@redhat.com> In-Reply-To: <53FFE37E.8000405@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1XNE1D-0004tD-Pi Subject: Re: [edk2] [PATCH v5 16/16] ArmVirtualizationPkg: add ArmVirtualizationQemu platform X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lersek@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 On 08/29/14 04:20, Laszlo Ersek wrote: > IOW, please squash the 2nd patch too. Attaching a 3rd one for squashing as well -- it adds the scsi bus & disk drivers, so that you can actually use the virtio-scsi HBA for something. (The protocol chain is [VirtioScsiDxe] --> gEfiExtScsiPassThruProtocolGuid --> [ScsiBusDxe] --> gEfiScsiIoProtocolGuid --> [ScsiDiskDxe] --> gEfiBlockIoProtocolGuid.) Once these are included, you can specify, for example, a SCSI CD-ROM: -drive id=cd0,if=none,format=raw,readonly,file=xxx.iso \ -device virtio-scsi-device,id=scsi0 \ -device scsi-cd,bus=scsi0.0,drive=cd0 (edk2 will recognize the scsi cd-rom, but you'll only get a filesystem on top if the ISO contains El Torito "stuff" that is appropriate for UEFI booting.) Thanks Laszlo ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ >From 5f06a8a23dbc6821657a6f7376a7c3e826823dd1 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Fri, 29 Aug 2014 05:40:46 +0200 Subject: [PATCH] add scsi bus and disk driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc | 9 +++++++++ ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc b/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc index e98c3ff..b3a0b52 100644 --- a/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc +++ b/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc @@ -48,6 +48,9 @@ TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf +[LibraryClasses.common.UEFI_DRIVER] + UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf + [LibraryClasses.AARCH64.SEC] ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf @@ -243,3 +246,9 @@ # MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf ArmPlatformPkg/Bds/Bds.inf + + # + # SCSI Bus and Disk Driver + # + MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf + MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf b/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf index 9dfdd56..ea79369 100644 --- a/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf +++ b/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf @@ -179,6 +179,12 @@ READ_LOCK_STATUS = TRUE INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf + # + # SCSI Bus and Disk Driver + # + INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf + INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf + [FV.FVMAIN_COMPACT] FvAlignment = 16 ERASE_POLARITY = 1 -- 1.8.3.1