]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: helper function to probe hypervisor caps
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 19 Mar 2017 13:40:52 +0000 (17:40 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 26 Mar 2017 15:12:10 +0000 (19:12 +0400)
commit9bf6b9dfa343673086a1f4faf19e790b94bc709a
tree9519109fc9e053482e915d15249b818186ff5fb9
parent74cfb5bb853ba259c1ec119aa86e4c92154c4249
bhyve: helper function to probe hypervisor caps

There are a number of functions in bhyve_capabilities.c that probe
hypervisor capabilities by executing the bhyve(1) binary with the
specific device arugment, checking error message (if any) and setting
proper capability bit. As those are extremely similar, move this logic
into a helper function and convert existing functions to use that.
src/bhyve/bhyve_capabilities.c