Re: [edk2] [PATCH v3 00/10] OvmfPkg: Introduce and use the new VIRTIO_DEVICE_PROTOCOL protocol

Subject: Re: [edk2] [PATCH v3 00/10] OvmfPkg: Introduce and use the new VIRTIO_DEVICE_PROTOCOL protocol

From: Mark Salter <msalter@redhat.com>

To: Laszlo Ersek <lersek@redhat.com>

Date: 2013-11-18 03:23:32

On Sat, 2013-11-16 at 20:07 +0100, Laszlo Ersek wrote:
> On 09/28/13 20:51, Mark Salter wrote:
> > On Fri, 2013-09-27 at 02:31 +0200, Laszlo Ersek wrote:
> >> Hi Mark,
> >>
> >> just my 2 cents:
> >>
> >> On 09/26/13 21:33, Mark Salter wrote:
> >>> I've been trying out this patch series on AArch64 foundation model.
> >>> I have UEFI booting a linux kernel image in an EFI system partition.
> >>> But the kernel itself doesn't see the virtio device. If I boot with
> >>> an UEFI image without virtio support built in, the same kernel does
> >>> see the virtio disk device.
> >>>
> >>> So, could this be a case of the UEFI virtio driver not releasing the
> >>> virtio device?
> >>
> >> Interesting. We'd only know for sure if we debugged into the kernel
> >> ("drivers/virtio/virtio_mmio.c" more precisely).
> > 
> > Well, the virtio_blk probe fails with error of -ENOENT. I tracked that
> > down to vm_setup_vq() in virtio_mmio.c:
> > 
> > 	/* Queue shouldn't already be set up. */
> > 	if (readl(vm_dev->base + VIRTIO_MMIO_QUEUE_PFN)) {
> > 		err = -ENOENT;
> > 		goto error_available;
> > 	}
> 
> This issue has been fixed in build 5206 of the FVP v8 Foundation model
> 0.8. (Apparently released on November 14th or after.)
> 
> I can now boot the Linaro OpenEmbedded image on it (with this series
> applied) using virtio-blk only; no semi-hosting is necessary for the
> kernel image or the device tree binary.

I can confirm that build 5206 works for me as well. Thanks for following
up on this Laszlo.



------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel