Skip to content

Commit

Permalink
CA-292656: Use qemu-upstream-compat if profile is unknown
Browse files Browse the repository at this point in the history
If the profile is unknown, use qemu-upstream-compat. In general,
qemu-trad should not be used but the fallback must remain as qemu-trad
at this point to avoid breaking PV guests. This was detected because
there was a typo in the Other Install Media template.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
  • Loading branch information
rosslagerwall authored and lindig committed Jun 28, 2018
1 parent 36ffd2e commit c86fa8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xc/device.ml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ module Profile = struct
sprintf "unsupported device-model profile %s: use %s" x Name.qemu_upstream_compat
|> fun s -> Internal_error s
|> raise
| x -> debug "unknown device-model profile %s: defaulting to fallback: %s" x (string_of fallback);
fallback
| x -> debug "unknown device-model profile %s: defaulting to %s" x Name.qemu_upstream_compat;
Qemu_upstream_compat

(* XXX remove again *)
let of_domid x = if is_upstream_qemu x then Qemu_upstream else Qemu_trad
Expand Down

0 comments on commit c86fa8e

Please sign in to comment.