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;
>       }
> 
> --Mark

Could be a problem in the AArch64 foundation model. Both virtio-mmio and
virtio-pci in the guest seem to have good virtio_config_ops.reset
implementation, and the problem is not reproducible on virtio-pci. Maybe
the host/emulator is not forgetful enough.

Laszlo

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to