[Libguestfs] [PATCH] lib: direct: Query qemu binary for availability of KVM (RHBZ#1605071).
Pino Toscano
ptoscano at redhat.com
Fri Sep 21 09:41:02 UTC 2018
On Thursday, 13 September 2018 13:29:49 CEST Richard W.M. Jones wrote:
> When using the direct backend, you should see the result of testing
> the qemu binary for the availability of KVM:
>
> libguestfs: qemu KVM: enabled
>
> Thanks: Andrea Bologna.
typo: "Andrea Bolognani"
> + enabled_node = json_object_get (return_node, "enabled");
> + if (!enabled_node || !json_is_boolean (enabled_node)) {
No need to check !enabled_node, all the various json_is_* functions
handle NULL values already.
With the above fixes, LGTM.
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180921/1a14d4d7/attachment.sig>
More information about the Libguestfs
mailing list