Skip to content

Commit 2f9cab2

Browse files
committed
Merge pull request xapi-project#416 from djs55/fix-bvt
[block]: since PV guests don't support CDROMs, treat these as Disks inst...
2 parents 4248a3a + 9b13d27 commit 2f9cab2

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)