Skip to content

Commit 88e810b

Browse files
David ScottMike McClurg
authored andcommitted
[block]: since PV guests don't support CDROMs, treat these as Disks instead.
Signed-off-by: David Scott <[email protected]>
1 parent 1f4c939 commit 88e810b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ocaml/xenops/device.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ let add ~xs ~hvm ~mode ~device_number ~phystype ~params ~dev_type ~unpluggable
463463
List.iter (fun (k, v) -> Hashtbl.add back_tbl k v) keys
464464
| None -> ());
465465

466+
(* PV guests don't support CDROMs so we model these as disks *)
467+
let dev_type = if not hvm then Disk else dev_type in
466468

467469
Hashtbl.add_list front_tbl [
468470
"backend-id", string_of_int backend_domid;

0 commit comments

Comments
 (0)