libxl: correct xenstore entry for empty cdrom
authorJuergen Gross <jgross@suse.com>
Wed, 15 Feb 2017 11:11:12 +0000 (12:11 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 16 Feb 2017 12:47:07 +0000 (12:47 +0000)
commitbc6a499ebcf102060987fb845c1450a38de441c7
tree8553b103d42e149123af8034906af2f23e0069fc
parent1e88db4701d6e2d00c04795e6aacaea942b617e6
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_disk.c