CA-146595: Improve parsing of VM platform flags
CA-146595: Improve parsing of VM platform flags

We need to be able to use 0 and 1 in (at least) the case of the acpi key.
Before this patch, using 0 and 1 would have both been converted to true when
passed to Xenopsd and therefore wrong arguments could be passed to Qemu when
trying to disable this feature.

This patch makes the 'bool' function a little more lenient on its input rather
than using OCaml's stock bool_of_string. It also introduces a warning message
if the value has been specified incorrectly.

Signed-off-by: Si Beaumont <a0992b7f1f450b4c7716d34b81a2d6f0877ae11a@citrix.com>

euanh/xen-api,anoobs/xen-api,salvocambria/xen-api,robertbreker/xen-api,koushikcgit/xen-api,cheng-z/xen-api,robertbreker/xen-api,euanh/xen-api,thomassa/xen-api,cheng--zhang/xen-api,salvocambria/xen-api,huizh/xen-api,anoobs/xen-api,srowe/xen-api,anoobs/xen-api,djs55/xen-api,djs55/xen-api,koushikcgit/xen-api,srowe/xen-api,guard163/xen-api,rafalmiel/xen-api,djs55/xen-api,cheng--zhang/xen-api,cheng-z/xen-api,cheng-z/xen-api,guard163/xen-api,djs55/xen-api,simonjbeaumont/xen-api,thomassa/xen-api,vasilenkomike/xen-api,euanh/xen-api,vasilenkomike/xen-api,cheng--zhang/xen-api,euanh/xen-api,koushikcgit/xen-api,thomassa/xen-api,thomassa/xen-api,huizh/xen-api,koushikcgit/xen-api,agimofcarmen/xen-api,thomassa/xen-api,agimofcarmen/xen-api,simonjbeaumont/xen-api,robertbreker/xen-api,agimofcarmen/xen-api,salvocambria/xen-api,srowe/xen-api,cheng--zhang/xen-api,huizh/xen-api,rafalmiel/xen-api,cheng-z/xen-api,agimofcarmen/xen-api,vasilenkomike/xen-api,simonjbeaumont/xen-api,huizh/xen-api,koushikcgit/xen-api,guard163/xen-api,rafalmiel/xen-api,guard163/xen-api,cheng-z/xen-api,simonjbeaumont/xen-api,huizh/xen-api,anoobs/xen-api,Frezzle/xen-api,euanh/xen-api,cheng--zhang/xen-api,Frezzle/xen-api,cheng-z/xen-api,rafalmiel/xen-api,euanh/xen-api,robertbreker/xen-api,djs55/xen-api,jjd27/xen-api,srowe/xen-api,rafalmiel/xen-api,cheng-z/xen-api,vasilenkomike/xen-api,salvocambria/xen-api,guard163/xen-api,Frezzle/xen-api,cheng--zhang/xen-api,huizh/xen-api,salvocambria/xen-api,anoobs/xen-api,jjd27/xen-api,thomassa/xen-api,simonjbeaumont/xen-api,cheng--zhang/xen-api,jjd27/xen-api,salvocambria/xen-api,robertbreker/xen-api,Frezzle/xen-api,vasilenkomike/xen-api,guard163/xen-api,jjd27/xen-api,jjd27/xen-api,srowe/xen-api,simonjbeaumont/xen-api,jjd27/xen-api,koushikcgit/xen-api,djs55/xen-api,rafalmiel/xen-api,Frezzle/xen-api,agimofcarmen/xen-api,agimofcarmen/xen-api,anoobs/xen-api,robertbreker/xen-api,vasilenkomike/xen-api