Displaying 2 results from an estimated 2 matches for "sctrls".
Did you mean:
ctrls
2016 Feb 22
2
Re: [PATCH v2 4/4] v2v: in-place: request caps based on source config
...has type:
val find_best : ('a option -> int) -> 'a option list -> 'a option * int
(Note it returns a pair: the best choice and also the precedence
integer of that choice).
The code to find the best block_type or net_type falls out fairly easily:
let block_type =
let sctrls = List.map (fun sd -> sd.s_controller) source.s_disks in
let best, _ = find_best precedence_of_s_controller_option sctrls in
match best with
| Some Source_virtio_blk -> Some Virtio_blk
| Some Source_SCSI -> None
| Some Source_IDE -> Some IDE
| None -> None in...
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