[libvirt] [PATCH v3 2/4] qemu: add dtb capability

Eric Blake eblake at redhat.com
Wed Feb 27 16:56:42 UTC 2013


On 02/27/2013 01:28 AM, Olivia Yin wrote:
> Signed-off-by: Olivia Yin <hong-hua.yin at freescale.com>
> ---
>  src/qemu/qemu_capabilities.c |    3 +++
>  src/qemu/qemu_capabilities.h |    1 +
>  2 files changed, 4 insertions(+), 0 deletions(-)

[not a patch review, but a general comment]

You did deep threading:

0/4
\> 1/4
   \> 2/4
      \> 3/4
         \> 4/4

But typically we prefer shallow threading:

0/4
+> 1/4
+> 2/4
+> 3/4
\> 4/4

You may want to investigate the settings you are using with git
format-patch and/or send-email.
> +++ b/src/qemu/qemu_capabilities.c
> @@ -210,6 +210,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
>  
>                "rng-random", /* 130 */
>                "rng-egd",
> +	      "dtb",

OK, so I lied - I'm also doing a patch review:

This uses a TAB, which is forbidden by 'make syntax-check'.

>      );
>  
>  struct _virQEMUCaps {
> @@ -944,6 +945,8 @@ virQEMUCapsComputeCmdFlags(const char *help,
>      }
>      if (strstr(help, "-uuid"))
>          virQEMUCapsSet(qemuCaps, QEMU_CAPS_UUID);
> +    if (strstr(help, "-dtb"))
> +        virQEMUCapsSet(qemuCaps, QEMU_CAPS_DTB);

This won't work.  -dtb did not exist prior to qemu 1.2, and for all qemu
newer than 1.2, we do NOT scrape '-help' output; instead, we use QMP
query commands.  You need to figure out the corresponding QMP command
that we can use to tell when dtb support exists in qemu.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130227/91c016a0/attachment-0001.sig>


More information about the libvir-list mailing list