]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: XenPvBlkDxe: handle empty cdrom drives
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 21 Oct 2015 12:44:12 +0000 (12:44 +0000)
committerlersek <lersek@Edk2>
Wed, 21 Oct 2015 12:44:12 +0000 (12:44 +0000)
commit0f34a051104e2b1b9123d56d48673de4b21bc533
treeb9255bc9612b39cfb764ca7e150f4cac7bda8907
parentf4c3c92396c9b146bc99dcba80001591cc45ba3e
OvmfPkg: XenPvBlkDxe: handle empty cdrom drives

Empty cdroms are not going to connect, avoid waiting for the backend to
switch to state 4, which is never going to happen, and return
error instead from XenPvBlockFrontInitialization(). Detect an
empty cdrom by looking at the "params" node on xenstore, which is set to
"" or "aio:" for empty drives by libxl.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18651 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/XenPvBlkDxe/BlockFront.c