search for: precedence_of_s_controller_opt

Displaying 2 results from an estimated 2 matches for "precedence_of_s_controller_opt".

2016 Feb 22
2
Re: [PATCH v2 4/4] v2v: in-place: request caps based on source config
...m changes the internal representation. So the code as written could stop working with innocuous changes to the declared types, or even in a future version of OCaml, because it depends on internals of the OCaml representation. IMHO it's safer to make the ordering you want explicit. So: let precedence_of_s_controller_option = function | None -> 0 (* worst *) | Some Source_IDE -> 1 | Some Source_SCSI -> 2 | Some Source_virtio_blk -> 3 (* best *) and then you can have a function that finds the best "something" in a list of "somethings", using a polymorphic precedence f...
2016 Feb 20
8
[PATCH v2 0/4] v2v: more control over device types
The decision on which device type to use for disks, network and video cards on output used to be taken deep inside the converting functions. This is not always desirable. In particular, there are scenarios when this decision is made before the convertion takes place. E.g. in in-place mode, the decisions are taken and the output VM configuration is created outside of v2v tool. This patchset