From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from m12-17.163.com (m12-17.163.com [220.181.12.17]) by mx.groups.io with SMTP id smtpd.web11.7162.1615474130548063492 for ; Thu, 11 Mar 2021 06:48:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@163.com header.s=s110527 header.b=PeVIgj7B; spf=pass (domain: 163.com, ip: 220.181.12.17, mailfrom: xh_young@163.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Message-ID:Date:MIME-Version; bh=fk4Ro Jn+849wCbi916FH6/dovuTYKVkvE0so9/BfWes=; b=PeVIgj7B4Jaq5B9SLYy6r qgMNNv8+/rG1YLtG95oAwOdcRIEruXs0bmaPQf5rzSsGVRlDkc6jOe/hOEwV3yK6 KW0Tp5dpFPMtEE1FiAshSAnnMQVG4pgHN5YcA0Z4IoWS+R/omycoC5GqeZILZ6qA TQCE8/Y/S+Y8UohjZQAf3A= Received: from xiaohedeMacBook-Pro.local (unknown [115.197.240.201]) by smtp13 (Coremail) with SMTP id EcCowAAHBo7PLUpgzvuVpQ--.58008S2; Thu, 11 Mar 2021 22:48:47 +0800 (CST) To: devel@edk2.groups.io From: Xiaohe Yang Subject: How does EDK2 detect virtio-blk-pci device as a boot device Message-ID: Date: Thu, 11 Mar 2021 22:48:47 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 X-CM-TRANSID: EcCowAAHBo7PLUpgzvuVpQ--.58008S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xr1rWw4xArW8Ww1fKr48Zwb_yoWfGrX_u3 W8Zw4kJw48Ca4kJFWUC3WIqFW2gw42vFWUArn8X34kGrWru397Xa9Y9ryjqF4kXw17Kw1Y gwsYqF4kX3yakjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU5s0ePUUUUU== X-Originating-IP: [115.197.240.201] X-CM-SenderInfo: 50kb50xxqjqiywtou0bp/xtbBQQ9SxV++JbOiTQAAsB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, I am using EDK2  OvmfPkgX64 at commit 37568365, and have a problem. The following is the detail. The Image disk that I use has EFI system partition, and is configured as a virtio-blk-pci device. Bootorder file-entry is not added in fw_cfg device. The log of EDK2 shows that (1)  VirtioBlkDxe.efi is successfully loaded at DXE stage. BootScriptExecutorDxe drivers "was discovered but not loaded". (2) PCI enumeration has finished at the start of BDS stage, virtio-blk-pci device is discovered. And one Option Rom's address is 0/0. (3) Before entering Shell, log shows "map: No mapping found". (4) After entering Shell, I choose “Boot From File”, the virtio-blk-pci device is not displayed. So I wonder what are the requirements for UEFI to detect the virtio-blk-pci device as a boot device, except having EFI system partition? Thanks, Xiaohe.