Skip to content

Commit 865a627

Browse files
committed
xenlight: use PHY backend when adding an empty CD-ROM and not using qdisk
Signed-off-by: Rob Hoes <[email protected]>
1 parent 59dfd7f commit 865a627

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xl/xenops_server_xenlight.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,10 @@ module VBD = struct
878878
let backend, format, script =
879879
if vbd.backend = None then
880880
(* empty CDROM *)
881-
Xenlight.DISK_BACKEND_QDISK, Xenlight.DISK_FORMAT_EMPTY, None
881+
if !Xenopsd.use_qdisk then
882+
Xenlight.DISK_BACKEND_QDISK, Xenlight.DISK_FORMAT_EMPTY, None
883+
else
884+
Xenlight.DISK_BACKEND_PHY, Xenlight.DISK_FORMAT_EMPTY, Some !Xl_path.vbd_script
882885
else
883886
if !Xenopsd.use_qdisk then
884887
(* FIXME: "regular" block devices *)

0 commit comments

Comments
 (0)