[libvirt] [PATCH v6 10/13] qemu: Generate and use zPCI device in QEMU command line

Andrea Bolognani abologna at redhat.com
Fri Oct 12 14:44:01 UTC 2018


On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote:
[...]
> @@ -3089,6 +3146,10 @@ qemuBuildControllerDevCommandLine(virCommandPtr cmd,
>                  goto cleanup;
>  
>              if (devstr) {
> +                if (qemuCommandAddExtDevice(cmd, &cont->info) < 0) {
> +                    VIR_FREE(devstr);
> +                    goto cleanup;
> +                }

Please add an empty line here...

[...]
> @@ -4531,6 +4604,9 @@ qemuBuildVideoCommandLine(virCommandPtr cmd,
>          if (video->primary) {
>              if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIDEO_PRIMARY)) {
>  
> +                if (qemuCommandAddExtDevice(cmd,
> +                                            &def->videos[i]->info) < 0)
> +                    return -1;

... and one here.


Reviewed-by: Andrea Bolognani <abologna at redhat.com>

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list