]> xenbits.xensource.com Git - xen.git/commit
libxl: correct xenstore entry for empty cdrom
authorJuergen Gross <jgross@suse.com>
Wed, 15 Feb 2017 11:11:12 +0000 (12:11 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Apr 2017 13:16:22 +0000 (14:16 +0100)
commita085f0ca12a3db203f9dcfc96dc3722d0f0f3fbf
tree9b3b5f112ec2e52a8528f001e8bc1045f28aad30
parentec7f9e1df2aa6cf8376d26eafca554c6521d2e7c
libxl: correct xenstore entry for empty cdrom

Specifying an empty cdrom device will result in a Xenstore entry

params = aio:(null)

as the physical device path isn't existing. This lets a domain booted
via OVMF hang as OVMF is checking for "aio:" only in order to detect
the empty cdrom case.

Use an empty string for the physical device path in this case. As a
cdrom device for HVM is always backed by qdisk we only need to cover this
backend.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c