On Jan 22, 2013, at 9:59 AM, David Woodhouse <dw...@infradead.org> wrote:

> On Tue, 2013-01-22 at 17:18 +0100, Laszlo Ersek wrote:
>> On 01/22/13 03:59, Andrew Fish wrote:
>>> 
>>> On Jan 21, 2013, at 5:40 PM, David Woodhouse <dw...@infradead.org> wrote:
>>> 
>>>> On Mon, 2013-01-21 at 16:59 -0800, Andrew Fish wrote:
>>>>> Not sure if BdsGetBootTypeFromDevicePath() is broken, or functioning
>>>>> as intended. Remember in EFI there is not a concept of a bootable
>>>>> non-removable block IO device.  
>> 
>> Ah, that explains the intent.
> 
> Yes, but AFAICT it's irrelevant. In OVMF the presence of the Removable
> flag is not at all relevant to whether the device appears in the default
> boot menu or not (ignoring NVRAM configuration, qv.). It affects the
> *sorting*, with removable devices appearing before non-removable ones.
> But that's it.
> 
> The question "why does a virtio disk not appear as a bootable device in
> the list in OVMF" has *nothing* to do with whether it's removable or
> not. Unless I'm very much mistaken.

This is really a platform policy question. The generic edk2 BDS punts platform 
policy to the PlatformBdsLib.

Seems like you either need to follow the algorithm in SetBootOrderFromQemu() or 
fix it to do what you need. 

https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/OvmfPkg/Library/PlatformBdsLib/QemuBootOrder.c

Thanks,

Andrew Fish

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to