Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 88e810b9dd26fbb93288d83bb39a094fb40b7d2f 1 parent 1f4c939
@djs55 djs55 authored Mike McClurg committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  ocaml/xenops/device.ml
View
2  ocaml/xenops/device.ml
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.