Permalink
Browse files

[block]: since PV guests don't support CDROMs, treat these as Disks i…

…nstead.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
  • Loading branch information...
1 parent 1f4c939 commit 88e810b9dd26fbb93288d83bb39a094fb40b7d2f David Scott committed with Mike McClurg Dec 5, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 ocaml/xenops/device.ml
View
@@ -463,6 +463,8 @@ let add ~xs ~hvm ~mode ~device_number ~phystype ~params ~dev_type ~unpluggable
List.iter (fun (k, v) -> Hashtbl.add back_tbl k v) keys
| None -> ());
+ (* PV guests don't support CDROMs so we model these as disks *)
+ let dev_type = if not hvm then Disk else dev_type in
Hashtbl.add_list front_tbl [
"backend-id", string_of_int backend_domid;

0 comments on commit 88e810b

Please sign in to comment.